• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Interacting with github aouth from java servelt  RSS feed

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

when i communicating with github oauth from java servlets i am receiving authozisation code,but when i am sending again request to github for token i am getting below error?i am posting java code and error can any one please help us??



Exception when i Running  Code
---------------------------------------

org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]








 
Rancher
Posts: 3737
40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What line of your code is that thrown from?

If the data coming back from the call is incorrect you might want to print it out first rather than trying to convert it, just to make sure the call is correct.
It's probably easier to do that in a quick test bit of code rather than calling your servlet each time.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!