Empty reply from server while accessing access token

vipulpachauri_15vipulpachauri_15 Member Posts: 1
edited December 2019 in Development

Getting 200 as status but No response from server.

This is following cURL command :

curl -X POST \

  https://cloud.lightspeedapp.com/oauth/access_token.php \

 -H 'Accept-Encoding: gzip, deflate' \

 -H 'Cache-Control: no-cache' \

 -H 'Connection: keep-alive' \

 -H 'Content-Length: 674' \

 -H 'Content-Type: multipart/form-data' \

 -H 'Cookie: __cfduid=d5846c2e8ecdf0507db1eb08e4f8275391575267302' \

 -H 'Host: cloud.lightspeedapp.com' \

 -H 'Postman-Token: e15f8bec-b287-4bbe-94a5-f18953bf20c9,195d6647-8e94-4b2f-abd9-cc0d37fd8479' \

 -H 'User-Agent: PostmanRuntime/7.19.0' \

 -H 'cache-control: no-cache' \

 -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \

 -F client_id=<client_id>\

 -F client_secret=<client_secret>\

 -F code=c5d8426fbe5cfde64a8c6157523579c0116eab05 \

 -F grant_type=authorization_code

Post edited by Alex Lugo on
Tags:

1 comment

  • Alex LugoAlex Lugo Administrator, Lightspeed Staff Posts: 181 moderator

    Hello @vipulpachauri_15,

    Are you still experiencing this issue?

    I remove the screenshot as it contained sensitive information and I remove your client id and client secret from your code sample.

    Alex Lugo
    API Support Specialist
    Lightspeed HQ
Sign In or Register to comment.