Forum Discussion

gessulat's avatar
11 years ago

Internal server error in API call.

Hallo,

 

i'm trying to make an API call in that way:

 

https://api.stage.lithium.com/community/2.0/threesixty/search?q=SELECT+%2A+FROM+messages&api.pretty_print=true&client_id=CLIENTID%3D

 

The response is: 

{"status":"Internal Server Error","message":"Internal Server Error","statusCode":500}

Any ideas what is wrong? Account settings? Query parameters? I've read all the forums but can't find any answer.

 

Thank you!

 

4 Replies

  • gessulat Could you share the code where you are making this REST call? Take some refrence from this article on how to user LiQL.

  • As i understand the simple request in browser's address field shoud work too. No?

  • luk's avatar
    luk
    Boss
    11 years ago
    Unfortunately not...you need to go trough an OAuth authorization flow which results in a token that has to be passed with the request... see http://community.lithium.com/t5/Community-API-v2/OAuth-2-0-authorization-grant-flow/ta-p/138402

    its way too complicated IMHO (it's reasonable from a security standpoint, but as long as most community data is publicly available via REST API v1, it does not make any sense to have it that complicated, I think there should be a setting that can make v2 API calls "insecure",e.g. not using the OAuth stuff)
  • Thank you for answer.

     

    I've read that in Getting Started that:

     

    You can make anonymous calls or authenticated calls. Both go through Lithium's API Proxy and require HTTPS. 

    An authenticated call requires an authorization handshake using an OAuth2.0 grant flow

     

    I though that in case of anonymous call i can do it without auth. 

     

    I think that using paralell 2 api versions is complication. I can do all my query (server to server) with v1.