fastlane / itc-api-docs

The unofficial documentation of the iTunes Connect JSON API
https://fastlane.tools
MIT License
519 stars 39 forks source link

"Crossfire-response-badrequest-title": "The URL is invalid." #8

Open jpawlyn opened 9 years ago

jpawlyn commented 9 years ago

I started receiving the error

{
  "itcBaseUrl": "https://itunesconnect.apple.com",
  "message": "Make sure the URL is correct and try again.",
  "l10n": {
    "Crossfire-response-badrequest-title": "The URL is invalid.",
    "Crossfire-response-badrequest-message": "Make sure the URL is correct and try again."
  },
  "errors": []
}

recently. Turns out that when making requests to analytics.itunes.apple.com there now needs to be the HTTP header:

'X-Requested-By' => 'analytics.itunes.apple.com'
KrauseFx commented 9 years ago

Thanks for letting me know. But the docs don't cover analytics yet.

jpawlyn commented 9 years ago

Good point and apologies, this certainly doesn't count as an issue. Was just wanting to highlight the problem that came up a week ago for those who use your login method and then access any of the analytics calls.

simongcx commented 9 years ago

Hi Jolyon, I'm getting the same error as you, but the 'X-Requested-By' tip hasn't fixed it. Would you mind sharing your code? Thanks!

jpawlyn commented 9 years ago

Afraid I'm unable to share but happy to take a look at your's if you would like to email it to me at gmail (jpawlyn).

iHTCboy commented 3 years ago

2021:

host: https://appstoreconnect.apple.com

'X-Requested-By' => 'analytics.itunes.apple.com'

change to:

'X-Requested-By' => 'dev.apple.com'