I'm new using IBM API CONNECT, My goal is to use API CONNECT as a proxy server to provide security to my my existing REST Apis, I followed this tutorial but I receive the below error:
<errorResponse>
<httpCode>404</httpCode>
<httpMessage>Not Found</httpMessage>
<moreInformation>The requested URL was not found on this server</moreInformation>
</errorResponse>
Someone know the possible cause of the error?
Thanks for you help!
Related
A connect API client is created using AGC Console Connect API option. When creating the client, a project is selected as well to limit the scope of access. Credentials are created without problem.
Obtained access token by using POST to this AGC URL, then passed the token to publishing API, Connect API server returned 403 error code when using GET method to query the API. Checking the document, there is mention of setting the project to N/A to avoid the error.
My question is why the project could not be set here?
Connect API is team-level access. It is valid for all projects under the account ID which created the connect API client. To use connect API, a project should always be set to N/A.
The project would be specified when server SDK is used in a project.
The value of project must be set to N/A because the Connect API requires some account-level permissions. If an application is restricted, the permissions cannot be obtained. Therefore, you cannot set a specific application.
I am developing a service in IBM Cloud, and I'm using Cloudant Service.
I'm using the IBM Cloudant Client Library for python to access my database. After pushing my service to a kubernetes cluster, my service is able to be used. It's possible to call the service with no issues for a while. But after one day or something like that, when I call my service, I get 401 Client Error from my cloudant database and I don't know why. The problem is solved if I delete and create the pods/service again in kubernetes.
Could someone help me?
Thanks.
Error:
401 Client Error: Unauthorized unauthorized one of _writer, _creator is required for this request for url: "myurl"
I'm calling my service in this way:
cloudant_client = Cloudant("540...-bluemix",
"4276dd...",
url="https://540...-bluemix.cloudant.com")
In case anyone is facing this..it may also be due to the verison of cloudant installed. The IBM tutorials use an outdated version of cloudant. The latest version allows IAM authentication
pip install cloudant
Also make sure u add .iam
cloudant_client = Cloudant.iam(<credentials>)
I'm leveraging API Connect service on Bluemix and keep facing following issue multiple times so wanted to know, where to go and troubleshoot these sort of issues quickly on Bluemix ? Please let me know if you need any additional details.
Could not process the API request. See the server log for more information, or contact your administrator.
Error ID: 5851d7e30cf27aa48695c426
In addition to this, since we don't have access to runtime component (DataPower) so how to troubleshoot runtime issues ?
Have you tried the Bluemix docs? The API Connect docs include a troubleshooting section. There is also documentation on the DataPower Connector.
I'm building a CloudFoundry application in Bluemix using the API Management service. For this I'm following this tutorial http://www.ibm.com/developerworks/cloud/library/cl-bluemix-api-mgmt-app/index.html.
I can successfully create an API Plan for a custom REST API application (running on a Liberty server on Bluemix as well) and it is published.
I can also create a service in my Bluemix dashboard using the new Custom API, which I take as the API plan was successfully deployed on Bluemix.
Whenever I try to bind this new service I get the following message:
BXNUI2055E: Unable to connect to Cloud Foundry because of the
following exception: "Read timed out." If the problem persists, see
the Troubleshooting topics in the IBM Bluemix Documentation to check
service status, review troubleshooting information, or for information
about getting help.
From time to time I also get this message
The service broker returned an invalid response for the request to
https://apimasv1-stage.stage1.mybluemix.net/d118dceb-edbf-4a7f-9bab-d44371b0c9f9/privateservices/v2/service_instances/1a60830c-0796-4105-afb4-e3477424acf9/service_bindings/ebb853dc-ec88-4987-b8f2-e9acd38d1741.
Status Code: 502 Bad Gateway, Body: 502 Bad Gateway: Registered
endpoint failed to handle the request.
Also, I can open the API portal and see the services listed in there. However, whenever I try to test the service, I get the following error
A security error has occurred. If using a self-signed certificate on
your gateway, you will need to accept it in your browser, which you
can do by clicking the following link.
https://api.wawona.apim.ibmcloud.com/victorshmx1ibmcom-dev/sb/LibraryREST/rs/authors/1
Also, below in the response I get this message:
NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to
load
'https://api.wawona.apim.ibmcloud.com/victorshmx1ibmcom-dev/sb/LibraryREST/rs/authors/1'.
I must clarify this service (the liberty app) doesn't have any security constraint to access the REST service nor I added some kind of security in the API Management portal.
Another thing to clarify is that I can bind other services, but not this one.
Does anyone know how I can fix those problems? Is there a known issue with IBM API Management service?
this seems to be an error with the service API Management instance you are trying to bind to.
You could open a ticket to support team following the link you can find here:
https://developer.ibm.com/bluemix/support/
Click on 'Contact IBM' and open a 'Support ticket'
I am trying to put a file into Google Cloud Storage by using API KEY. What is the proper way to do it?
I am put into an address of
"https://storage.googleapis.com/my_test?key=AIzaSyD5TnLAX6N_xAuSudUYSS6k1j8UxfaV9YN"
However, I got an error saying I am missing a required header. What should be the proper way to do this?
Thanks.
Server responded with: MissingSecurityHeader; Your request was missing a required header: Authorization
An API key is not an authentication mechanism. See the Authentication page for the supported authentication methods. Namely:
OAuth 2.0
Cookies
Service Accounts