Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with JSP app when calling Yahoo Geocoding API.  RSS feed

 
Susan Smith
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I'm trying to use YAHOO geocoding API in my JSP page.
Basically I have a form with a text box to fill in 'address' and a button that will call YAHOO geocoding API. But many times I got HTTP response 400 but when I try to submit the request again (same 'address' values) it is ok. I'm trying to figure out whether this is related to the JSP part or not.I don't understand why sometime it works and sometime it doesn't. Maybe some of you guys might have similar experiences?



I think it randomly gives me bad request/ HTTP 400 when I do urlConnection.getInputStream().

Thanks in advance for all the help.
 
Susan Smith
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The APP_ID value will be 70 characters that contains letters, numbers and "." (dot)
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If it works sometimes and not at others. it's unlikely any problem with your code, and more likely a problem at Yahoo!'s end -- assuming that nothing else in your environment is changing.
 
Susan Smith
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What I'm confused about is that it has never happened before when I call the Geocoding URL directly using web browser.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!