Solved

Understanding Open Industrial Data - Setting up Postman


Badge

Hi,

I am following the course “Understanding Open Industrial Data” and am at “Set up Postman”. 

Two issues:

  1. I don’t get to see the “Authorize using browser” option under CallbackURL” and hence it is not allowing me to make any edits there as per the course. Just fyi, I am running the Postman from web and have downloaded  Postman-Agent for it.
  2.  I am currently trying to get Access token using provided details in the section. But I am unable to get the Access token when I click on “Get New Access Token”. I get an error message saying “Sorry, but we’re having trouble signing you in.”.

I am unable to move further due to this. I have attached the screen-shots to show my entries in Postman and error message. Will highly appreciate assistance to resolve this and help me move forward.

 

Thanks,

Anindya Ray

 

icon

Best answer by Madina Kholmatova 7 December 2022, 07:53

View original

14 replies

Userlevel 4
Badge +5

Hi @Anindya Ray

I am looking into the issue and will get back to you as soon as possible. 

Best regards,
Madina

Userlevel 4
Badge +5

Hi again @Anindya Ray

I was able to retrieve the error you are facing. To be able to edit the Callback URL, you need to download and install Postman. Unfortunately, it is not possible to edit the Callback URL via browser. Can you please try to use the installed Postman on your laptop and try the steps again? 

Let me know if you have any more issues! 

Best regards,
Madina

Badge

Hi @Madina Kholmatova 

Many thanks for your prompt response. So, now I have downloaded Postman on my desktop and running it from there. Although it gave an error during installation set-up, its running fine though. . 

I keyed in all the parameters as per attached screenshots

 

However, I am unable to get the Access token when I click on “Get New Access Token”. I get an error message saying “Sorry, but we’re having trouble signing you in.”.

Not sure where I am going wrong now. Will highly appreciate your assistance to resolve this please..

Thanks,

Anindya Ray

 

Badge

Hi @Madina Kholmatova ,

In continuation of my message above, I am also sharing the Environment Variables that I have set up just so that you can check and know if I got it all correct

 

Thanks,

Anindya Ray

Userlevel 4
Badge +5

Hi again @Anindya Ray

 

I see there is a typo in the the Auth URL, where an extra space has been added (tenant- id). Can you removed the space in front of id?

Regarding the second issue with baseURL, I see you have defined it correctly. But, have you selected the correct environment?

 

 

 

Badge

Hi @Madina Kholmatova 

Thanks….yes, I corrected for both as advised by you:

  1. Typo in the the Auth URL, where an extra space has been added (tenant- id). - I removed that space (btw, I copied it from the course instrictions...it is there in it too). 
  1. baseURL: I have now selected the correct environment:

 

 

I am still getting this error

 

Now in “Environment” the “baseURL” is set to https://api.cognitedata.com

While in the course notes Scope: {{baseURL}}/.default
I tried entering both. That is:

Scope: {{baseURL}}/.default

as well as Scope: https://api.cognitedata.com

I am still getting the same error.

Please let me know.

Thanks,

Anindya Ray

Userlevel 4
Badge +5

Hi @Anindya Ray

That’s very strange why the issue keeps happening. Can you please first send a recording of your screen, where you show your environment variables etc? After that you can try to copy and paste the following as Scope: https://api.cognitedata.com/.default and test it again. Although it is not a best practice to use the direct URL scope, but in this case this should work for you.

We will look into the recording of your screen to further investigate the issue meanwhile you continue with the course. 

Let me know if this works!
Best regards,
Madina

Badge

Hi @Madina Kholmatova 

Apologize for the delay in replying back. Had a busy day. Just came back to re-start the course. As desired by you, I have attached the screen-shots of the steps taken beginning with “Environment Variables”.  I could not upload any video as the attach file option here don’t allow attaching video files. Hope this is what you needed. If not let me know.

 

As advised, I changed  Scope: {{baseURL}}/.default
to Scope: https://api.cognitedata.com/.default and tested it again by hitting “Get New Access Token”. On doing that I didn’t get any error screen this time. It asked me to authenticate by keying in my email address used to register with Cognite which I did. BUT, what I got was not a Notebook but all gibberish😀.

The screenshot below shows what I got👇🏻

Any idea why….

 

Will highly appreciate your help.

Thanks, Anindya Ray

Userlevel 4
Badge +5

Hi @Anindya Ray

Thank you for sharing the screenshots, I will look into them. But, that’s great to hear that you didn’t get any errors and indeed, it got executed successfully. That long characters you got is an access token, so as a course instruction says, click Use Token, and you are good to continue with the course.

 

Let me know if you get any other issues! 

Best regards,
Madina

Badge

Hi @Madina Kholmatova 

I am sorry but I did get another issue. As instructed in the course video, I clicked “Use Assets”>>”List Assets”>>”Send”…..I am getting an Error as highlighted in Yellow👇🏻. Please note this is after I press “Send” button as instructed in the course video

Not sure what the issues are. Please can your team check on this as it is getting difficult to proceed.

Thanks...

 

Userlevel 4
Badge +5

Hi @Anindya Ray

It might be because your token that you generated in the previous lesson has expired. Tokens are given for a short period of time, and gets expired. Can you make sure to generate a new token, click Use token, and save it. Then retry with this lesson. If the issue keeps persisting, I suggest to reach out to Cognite Support (support@cognite.com).

Best regards,
Madina

Userlevel 1
Badge +4

I faced similar issue. Able to overcome it by replacing variable name {{tenate-id}} and {{baseURL}} with actual values.

Badge +2

Hi.

 

Found this thread as I was having the same issue as OP.

My problems resolved after removing the extra space in front of tenant-id.

You might want to fix this.

 

I copied the tenant-id from below this video: 

 

Userlevel 2
Badge +6

Hi Mtnholt, 

Thanks for noticing the extra space in the auth url and we have updated the course.

Regards 
Kumar

Reply