Either the README in ffdc-sample-spi GitHub project or the supplied postman collection is outdated. I do not see the "APIM fetch token" call. My options are: "Call sample-spi with valid date" and "Call sample-spi with invalid date".
Undeterred, I tried using Postman's built in Authentication - OAuth2 Client credentials and the "Token URL" listed in the API explorer https://api.fusionfabric.cloud/login/v1/sandbox/oidc/token
I can successfully get a token, which gets stored in the Authorization header as a Bearer token:
With my variables filled out as written in the README:
At this point I get an error 500 when making the calls included in the collection:
{ "statusCode": 500, "message": "Internal server error", "activityId": "fcc82f1d-c971-4050-a779-a67a9f948bbf" }
My sample-spi-url is accessible on the internet behind an nginx proxy with a valid SSL certificate. It is the same URL I have configured in my App settings through the dashboard. I can navigate in my browser to the SPI server successfully. However, when running the call through postman, no connection to the SPI server is ever attempted before or after I get the 500 response. The web server logs verify this.
I know there was a question about this asked last year Sample SPI Developer Portal dev testing - error 500 but I think my post / question has a bit more detail than I could fit into a comment there.
I suppose this is multiple questions in one post. Really they are:
1. Are either the postman collection or project README outdated?
2. Is my understanding / approach correct? That is, the fusion fabric cloud should make a secondary call to my public web server when I call the APIMUrl through postman?
3. What is causing this 500 error?