Grant Type Error

kdoll007kdoll007 Member Posts: 3

Trying to get an access token but keep getting this error {"error":"invalid_request","error_description":"The grant type was not specified in the request"} I have authorized the grant type as -F 'grant_type=authorization_code' \

and I am able to obtain the temporary code without issue but when I go to generate the actual code I keep getting this error. I am using Postman and I send the POST request within 30 seconds of receiving my temporary code.

Any help with this please?

Tags:

1 comment

  • kdoll007kdoll007 Member Posts: 3

     

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

    400

    233 ms

    • Network

    Request Headers

    Content-Type: application/json

    User-Agent: PostmanRuntime/7.26.7

    Accept: */*

    Cache-Control: no-cache

    Postman-Token: 4269021e-1577-422e-b42d-2d477c8b87f8

    Host: cloud.lightspeedapp.com

    Accept-Encoding: gzip, deflate, br

    Connection: keep-alive

    Content-Length: 331

    Cookie: __cfduid=d6beb1635c17903ad469adb7a3288e9cd1603497473

    Request Body

    config: {


    url: 'https://cloud.lightspeedapp.com/oauth/access_token.php',


    method: 'post',


    data:'client_id=fa759************&client_secret=330b74ff89***********&code=22866f9d6b733705a83fd3e210e600e2c078c556&grant_type=authorization_code',↵↵

    Response Headers

    Date: Sat, 24 Oct 2020 01:27:25 GMT

    Content-Type: application/json

    Content-Length: 97

    Connection: keep-alive

    x-frame-options: SAMEORIGIN

    X-XSS-Protection: 1; mode=block

    X-Content-Type-Options: nosniff

    Cache-Control: no-store

    CF-Cache-Status: DYNAMIC

    cf-request-id: 05f9d0c59c00005f1726010000000001

    Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"

    Server: cloudflare

    CF-RAY: 5e6fea4f5c285f17-OMA

    Response Body

    {"error":"invalid_request","error_description":"The grant type was not specified in the request"}

    Show raw log

     

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

    400

    93 ms

Sign In or Register to comment.