Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Retrofit returns error 307, calling web service in android

I have a strange problem. I created an android app that uses Retrofit library for calling a web service. I have widely tested the app, on a lot of devices and Android version. On all works fine, except for one: a Acer Iconia Tab A500 with Android 4.0.3 (API Level: 15). For this one, each time the web service is called, retrofit return me the following error:

11-28 16:08:59.700: W/System.err(4436): retrofit.RetrofitError: 307 Temporary Redirect

I'm sure the code I right, and I can't figure out where can be the problem. Any suggestions?

like image 433
GVillani82 Avatar asked Nov 28 '14 15:11

GVillani82


1 Answers

It could be that your new phone did not have access to the internet and/or the server. That was what was wrong with my phone when I got the error.

Hope this helps!

like image 143
user3700215 Avatar answered Nov 16 '22 11:11

user3700215