Closed venugopal60 closed 6 years ago
Error code is 401 - Unauthorized. Did you follow "Step 3.2 Create Service ID and API Key for accessing objects" and then "Step 5.4 Specify Cloud Object Storage credentials in MFP Adapter" ?
Also, how are you trying to run the adapter? Through MFP console or via command line?
Did you create confidential client as per "Step 6.3 Test the MyWardData adapter"?
If you are testing via command line, then you first need to generate an authorization token as per instructions in https://mobilefirstplatform.ibmcloud.com/tutorials/it/foundation/8.0/adapters/testing-and-debugging-adapters/#using-postman and then specify the same in your command line
curl -X GET --header 'Accept: application/json' --header 'Authorization: Bearer <your authorization token>' 'http://localhost:9080/mfp/api/adapters/MyWardData/objectStorage'
Closing issue for now as there is no response. Please reopen in case the issue is still there.
i followed steps to connect object store response is no conent Please check response
Curl curl -X GET --header 'Accept: application/json' 'http://localhost:9080/mfp/api/adapters/MyWardData/objectStorage' Request URL http://localhost:9080/mfp/api/adapters/MyWardData/objectStorage Response Body no content Response Code 401 Response Headers { "date": "Thu, 17 May 2018 07:42:48 GMT", "www-authenticate": "Bearer", "x-powered-by": "Servlet/3.1", "content-length": "0", }