Refresh token not working

Comments

7 comments

  • Tyler Lamparter Principal Product Manager
    Awesome Follow-up
    Engaged
    Top Contributor
    Answer Pro
    Celigo University Level 4: Legendary

    Nuri Ensing could you send some screenshots? If your token needs to be sent in the header, then you can specify that on the connection settings without having to use handlebar expressions. If you continue using the handlebar expression, then you probably need to use {{connection.http.auth.token.token}} because the connection will automatically store a new token after performing the refresh task. The "refreshToken" is used when performing the refresh token call, but the response from that call updates that actual token.

    0
  • Tyler Lamparter Principal Product Manager
    Awesome Follow-up
    Engaged
    Top Contributor
    Answer Pro
    Celigo University Level 4: Legendary

    Nuri Ensing the downside of using the handlebar expression is you'll have to specify it on every import and export step. If you modify the connection settings to say the token belongs in the header, then you won't have to specify it on every export or import.

    0
  • Nuri Ensing NetSuite Integration Whiz
    Engaged
    Awesome Follow-up
    Celigo University Level 4: Legendary

    Tyler Lamparter
    Screenshot HTTP import step:




    Screenshot connection:


    and:


    When doing a POST in Postman to the signin api with the same http request body i do get a json response back which looks something like this:

    {
    "token":"removed",
    "user":{
    "id":"6",
    etcetera.....



    0
  • Tyler Lamparter Principal Product Manager
    Awesome Follow-up
    Engaged
    Top Contributor
    Answer Pro
    Celigo University Level 4: Legendary

    Nuri Ensing can you try not specifying your headers on your import step? By doing that, you're basically duplicating or overriding the connection level settings that will already put the token in the header for every call to that connection. 

    0
  • Nuri Ensing NetSuite Integration Whiz
    Engaged
    Awesome Follow-up
    Celigo University Level 4: Legendary

    Tyler Lamparter Thanks. However I already did that one and now yet again but I am still getting the same problem.

    0
  • Tyler Lamparter Principal Product Manager
    Awesome Follow-up
    Engaged
    Top Contributor
    Answer Pro
    Celigo University Level 4: Legendary

    Nuri Ensing it may be easier to troubleshoot over zoom. We have office hours every Tuesday, could you join next week? https://docs.celigo.com/hc/en-us/articles/360045798291

    0
  • Nuri Ensing NetSuite Integration Whiz
    Engaged
    Awesome Follow-up
    Celigo University Level 4: Legendary

    I have submitted a ticket as this is a problem in production which needs to be fixed.

    0

Please sign in to leave a comment.