Skip to Content

Problem Creating a S3 web storage for SAP Leonardo Amazon with Postman

Hello

I have trouble creating a webstorage to retrain the Image Classification API with custom data models. A month ago, I was able to successfully create and train a custom data model. However, the custom model was deleted because Trial accounts are only available for 30 days. Now, I wanted to recreated everything and I am stuck at creating the webstorage with Postman. This just worked fine 4 weeks ago. This is the request and the error message I am getting now while creating the webstoreage:

https://mlftrial-retrain-image-api.cfapps.eu10.hana.ondemand.com/api/v2/image/retraining/storage

401 | 694ms

POST /api/v2/image/retraining/storage HTTP/1.1

Content-Type: application/json

Authorization: Bearer eyJhbGciOiJSUzI1NiIsImprdSI6Imh0dHBzOi8vczAwMDk2MjI2NDZ0cmlhbC5hdXRoZW50aWNhdGlvbi5ldTEwLmhhbmEub25kZW1hbmQuY29tL3Rva2VuX2tleXMiLCJraWQiOiJrZXktaWQtMSIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJhYzk4OTQ1M2VlOWM0OGY5OWJjNGQ5Nzk4NTQzNjhkOCIsImV4dF9hdHRyIjp7ImVuaGFuY2VyIjoiWFNVQUEiLCJ6ZG4iOiJzMDAwOTYyMjY0NnRyaWFsIiwic2VydmljZWluc3RhbmNlaWQiOiIzNmU4NTNkMy1lOWZiLTQwOTAtOTFhYi04ZjM2NzBhYWY4N2IifSwic3ViIjoic2ItMzZlODUzZDMtZTlmYi00MDkwLTkxYWItOGYzNjcwYWFmODdiIWIyNzc1MXxmb3VuZGF0aW9uLXN0ZC1tbGZ0cmlhbCFiMzQxMCIsImF1dGhvcml0aWVzIjpbInVhYS5yZXNvdXJjZSIsImZvdW5kYXRpb24tc3RkLW1sZnRyaWFsIWIzNDEwLnJldHJhaW5zZXJ2aWNlLnJlYWQiLCJmb3VuZGF0aW9uLXN0ZC1tbGZ0cmlhbCFiMzQxMC5tb2RlbHNlcnZpY2UucmVhZCIsImZvdW5kYXRpb24tc3RkLW1sZnRyaWFsIWIzNDEwLm1vZGVsbWV0ZXJpbmcucmVhZCIsImZvdW5kYXRpb24tc3Rk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qS6vigsIhQAjRauR5kiVh81RTMqvGwUU5TrtGjRXfvV_3PpSNFrxtlRVWYwhINGw1s3yVQN4QUuI2taGuR_Y3LXydwTsSpRbdRgkrxV2vOGSalU7S798_KDtLuBUIPVczF_jvZvxGiHW2W1sdgTguAD59CW1A0O-C_V6-3WWulTWVwcXTodi_IAGzLY7BQXqGeLezhOw_GJc02FXA-XCbjYJKoRpZjxzmgaOkD4Rc8KI1VpDq3kPsgbwSFDH63SAHXD_NfVsBdfF0Y1CC0UDvgXSvXi_a0kwTswN6dDutQ4FNFB28VPaH5r_UtC1zz93ObLjcXDICR0CMV1a6zoVK7_3fp9AVruMVKPgtLn1c1S6QuhAqVMx2LJToVzsWkpi3ITYZrgiwAQFVLh4AltbdPSCH3_XlntlStbctFVtoOhP3CAKYd9Qo

User-Agent: PostmanRuntime/7.19.0

Accept: */*

Cache-Control: no-cache

Postman-Token: 3a8b5cc1-21e6-4cae-b3a8-0da0178f3622

Host: mlftrial-retrain-image-api.cfapps.eu10.hana.ondemand.com

Accept-Encoding: gzip, deflate

Content-Length: 0

Connection: keep-alive

HTTP/1.1 401 Unauthorized

Content-Length: 373

Content-Type: application/json

Date: Mon, 04 Nov 2019 13:54:38 GMT

Server: Werkzeug/0.15.6 Python/3.5.7

X-Vcap-Request-Id: f0687708-2e30-4719-7445-53d75a5a25dd

Strict-Transport-Security: max-age=31536000; includeSubDomains; preload;

{"error":{"code":"401","details":[{"Response":"{\"code\":\"401\",\"details\":null,\"message\":\"Invalid JWT token: 'Not allowed JWT header: 'jku'=https://mlf-trial.authentication.eu10.hana.ondemand.com/token_keys.'","request_id":null,"target":"/api/v2/storage"}n"}],"message":"Error during storage provisioning","requestId":"f0687708-2e30-4719-7445-53d75a5a25dd"}}

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Nov 05, 2019 at 07:54 AM

    Hello Robert, I found that switching an existing Postman request to another DI instance did not always work right away. I assume Postman keeps some session information from the first DI instance. Pointing that request with the old session details to the second DI was then causing a mismatch. I didn't spend much time getting to the bottom of this, but you could quickly test whether creating a new request in Postman makes it work.

    Greetings, Andreas

    Add a comment
    10|10000 characters needed characters exceeded

    • Hello again Andreas

      I ran into another issue. I now get an error while trying to train my custom data model:

      { error":{ "code":"400", "details":[ { "Response":"{\n \"code\": \"400\",\n \"message\": \"Invalid resource plan : standard\"\n}\n" } ], "message":"Error during job submission", "requestId":"4f325506-8c79-4d8d-7826-784368e314a4" } }

      Is there a new restriction to the trials account to be no longer able to train custom models? I can only choose the standard plan while creating the instance in the SCP...

      Regards

      Robert

  • Posted on Nov 05, 2019 at 11:22 AM

    Hello Andreas

    Thanks for the quick answer! It stayed the same with an new request. However I reinstalled postman and it worked flawlessly.

    Problem solved! Thank you very much

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.