question

Boris Vrtic avatar image
Boris Vrtic asked

Sample SPI Developer Portal dev testing - error 500

Hi,


I've successfully registered a new application for the Sample SPI, generated a client secret, and then used Postman to successfully get the OAuth2 token.


However, when I try to call the Sample SPI from Postman using that token, I'm getting error 500 after approx. 2 seconds ...


{

"statusCode":500,

"message":"Internal server error",

"activityId":"fbd0ad5e-f83f-4abb-bb33-4dfefd63831f"

}


Please help.

Development
10 |600

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Radu Cristian Ilina avatar image
Radu Cristian Ilina answered

Hello,


We have tested the SPI using the SPI implementation guide.

It seems that there may be an error with the provided back-end url. If you are following the guide then the back-end route should be http://localhost:9000, you can set it in the Postman collection variables as "sample-spi-url". If you are using a custom domain, then you must verify that it is accessible.

After filling in the remaining Postman variables "client_id" and "client_secret" and after starting the provided spring boot sample server, you can get an access token by using the "APIM fetch token" request from Postman. After that, there should be a variable in the Postman collection called APIM_token with the token obtained after the last request, if it is not present you can create it manually and assign it the newly received token. Now calling the "Call sample-spi with token" request should return the date and dayOfWeek.


Best Regards,


Radu Ilina

10 |600

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.