Skip to content

Latest commit

 

History

History
59 lines (42 loc) · 2.86 KB

File metadata and controls

59 lines (42 loc) · 2.86 KB
copyright
years
2020, 2021
lastupdated 2021-09-13
keywords watson 403 error, watson messages, watson error messages, watson response codes, watson status codes
subcollection watson
content-type troubleshoot

{{site.data.keyword.attribute-definition-list}}

Why can't I complete an API request to a Watson service?

{: #forbidden-error} {: troubleshoot}

You send a request to a Watson API but receive an error message that you don't have permission. {: shortdesc}

When you send a request through a Watson API, you receive a 403 HTTP status code. {: tsSymptoms}

For example,

{
  "trace":"b0615b07-3a0f-4eb0-8df4-263d64be6b03",
  "error":"Forbidden",
  "more_info":"https://cloud.ibm.com/docs/watson?topic=watson-forbidden-error",
  "code":403
}

{: screen}

A 403 HTTP status code indicates that you are not allowed to make the request. 403 is similar to 401, but the credential is not authorized for the resource or service instance. {: tsCauses}

As of 26 May 2021, the watsonplatform.net endpoint URLs are blocked, and calls to that domain return a 403. You might have received email to your {{site.data.keyword.cloud_notm}} email address with information about this endpoint change. {: important}

Access in {{site.data.keyword.watson}} services can be affected by the endpoint URL and by keys, tokens, or service roles that are not authorized. {: tsResolve}

  • Verify the endpoint URL in your call.

    • Check that the URL in your call matches the URL in the service instance.
    • Make sure that you're not pointing to watsonplatform.net. For more information about the actions to take, see Updating endpoint URLs from watsonplatform.net.
  • Verify that the API key in your call matches the URL in the service instance.

  • Validate the role that is associated with your credentials. The service access role that is associated with your API key determines which endpoints and methods you can access.

    For example, with a Reader role, you might not be able to edit, create, or delete anything, and might not be able to view some details of a resource.

    • To manage roles through the {{site.data.keyword.cloud_notm}} console, go to Manage > Access (IAM), and then select Users, Access groups, or Service IDs to get started.
    • For more information about access to {{site.data.keyword.conversationshort}} resources, see Managing access to resources.
    • For more information about roles required for other {{site.data.keyword.watson}} services, see IAM roles and actions and search for your service.
    • For more information about IAM roles in {{site.data.keyword.cloud_notm}}, see Access management.