Forum

Browse topics, discover Works With Legrand community!

server_error on create-an-application-using-postman

Hi
I have been creating an application as in “https://developer.legrand.com/tutorials/create-an-application-using-postman-v6-1-3/”

In “Step 4 : Collect your access tokens” I get
{
“error”: “server_error”,
“error_description”: “An unexpected server error occurred”
}

All parms seems to be OK, please could you help me to understand the problem?

Regards

Alex

Hello Alessandro,

It seems to work on my side. Can you please retry ?
We had a server side deployment this morning, maybe it had an impact on this process during a few minutes.

If it still doesn’t work, can you send me a screenshot of your request on Postman ? (hide your client_id and client_secret)

Have a good day,
Leslie – Community Manager

Hi Leslie,
thank you for your feedback

It seems to work on my side too

Regards
Alex

Great good news 😉

Have a good day,
Leslie – Community Manager

Hi,
I have the same problem.
I’ve tried this several times with different urls in the previous step, but I still find with this message when executing the request in step 2 of https://developer.legrand.com/tutorials/0auth2-end-point-url/

Hi Olivier,

Can you please use the contact form to send me the POST request you send ? And also the error message you have ?

When you talk about ‘different urls’ from the previous step : the url you have to use must be exactly the same as the one you declared in your application

Have a good day,

Leslie – Community Manager

Hope you can help…

Me too doing tests as in “https://developer.legrand.com/tutorials/create-an-application-using-postman-v6-1-3/”

In “Step 4 : Collect your access tokens” I get:

“error”: “unsupported_grant_type”,
“error_description”: “The grant type  is not supported”

POST request: “https://partners-login.eliotbylegrand.com/token?client_id=mycorrectid&grant_type=authorization_code&code=eyJraWQiOiJjcGltY29y…”

Hi Guido,

– Did you do a copy/paste of “grant_type” and “authorization_code” ? Try to write them manually

– Did you choose “form-data” in the “Body” part of your Postman request ?

Hoping it will solve your issue,

Have a good day,

Leslie – Community Manager

Sadly the same… Sure I’m doing something wrong.

Any other way to obtain the first temporary token?

Some alternatives to postaman o try the auth flow?

Unfortunately there is no other way to retrieve the token

What is strange is that if I deactivate the grant_type parameter I obtain the same error as you

But if I remove the “e” of “authorization_code” I have the following error :

{
“error”: “unsupported_grant_type”,
“error_description”: “The grant type authorization_cod is not supported”
}

Can you please send me a screenshot of your Postman request interface ? (don’t forget to hide the private information)

Sure, thanks for support…

Here’s the screens: https://www.dropbox.com/sh/nx5a6pwerxal6x6/AAB3t8vgKOHAczfDdmfGI42na?dl=0

 

Ok I think I found :

The parameters of your POST request must go into “Body” and not “Params” (contrary to your GET request)

Please tell me if it resolved your issue

Have a good day,

Leslie – Community Manager

Thankyou!!

Everything ok with parameters in “Body” 🙂

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.

Information

message12 replies
people4 participants