When the "Clone in Xcode" integration is not enabled, Bitbucket will try to enable it when it receives REST API requests with an "Xcode" user agent. This succeeds when using basic authentication, but fails when using an access token.
- Be sure "Clone in Xcode" is disabled at <base-url>/account.
- Make a request to the REST API using an access token (not basic auth), with an Xcode user agent: curl -X GET -H "User-Agent: Xcode/".
Bitbucket should allow Xcode as a user agent and the request should succeed.
The user receives a 500 error, and the below exception is thrown in the atlassian-bitbucket.log file:
Navigate to <base-url>/account and enable "Clone in Xcode". This will prevent Bitbucket from attempting to enable it during the API request and triggering this error.