fastlane-old / deliver

Upload screenshots, metadata and your app to the App Store using a single command
https://fastlane.tools
2.24k stars 162 forks source link

unexpected token at 'Correlation Key...' #535

Closed winzig closed 8 years ago

winzig commented 8 years ago

Trying to upload screenshots today with deliver, and receiving the error below. This is my first time using deliver.

/Library/Ruby/Gems/2.0.0/gems/json-1.8.3/lib/json/common.rb:155:in `parse': 757: unexpected token at 'Correlation Key :AdamId=<MY_APP_ID>:Version=1.0.0 was not encoded correctly. ' (Faraday::ParsingError)
from /Library/Ruby/Gems/2.0.0/gems/json-1.8.3/lib/json/common.rb:155:in `parse'
from /Library/Ruby/Gems/2.0.0/gems/faraday_middleware-0.10.0/lib/faraday_middleware/response/parse_json.rb:11:in `block in <class:ParseJson>'
from /Library/Ruby/Gems/2.0.0/gems/faraday_middleware-0.10.0/lib/faraday_middleware/response_middleware.rb:48:in `call'
from /Library/Ruby/Gems/2.0.0/gems/faraday_middleware-0.10.0/lib/faraday_middleware/response_middleware.rb:48:in `parse'
from /Library/Ruby/Gems/2.0.0/gems/faraday_middleware-0.10.0/lib/faraday_middleware/response_middleware.rb:39:in `process_response'
from /Library/Ruby/Gems/2.0.0/gems/faraday_middleware-0.10.0/lib/faraday_middleware/response_middleware.rb:32:in `block in call'
from /Library/Ruby/Gems/2.0.0/gems/faraday-0.9.2/lib/faraday/response.rb:57:in `on_complete'
from /Library/Ruby/Gems/2.0.0/gems/faraday_middleware-0.10.0/lib/faraday_middleware/response_middleware.rb:30:in `call'
from /Library/Ruby/Gems/2.0.0/gems/faraday-0.9.2/lib/faraday/rack_builder.rb:139:in `build_response'
from /Library/Ruby/Gems/2.0.0/gems/faraday-0.9.2/lib/faraday/connection.rb:377:in `run_request'
from /Library/Ruby/Gems/2.0.0/gems/faraday-0.9.2/lib/faraday/connection.rb:177:in `post'
from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.19.0/lib/spaceship/client.rb:252:in `block in send_request'
from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.19.0/lib/spaceship/client.rb:186:in `call'
from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.19.0/lib/spaceship/client.rb:186:in `with_retry'
from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.19.0/lib/spaceship/client.rb:251:in `send_request'
from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.19.0/lib/spaceship/client.rb:227:in `request'
from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.19.0/lib/spaceship/du/du_client.rb:52:in `upload_file'
from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.19.0/lib/spaceship/du/du_client.rb:18:in `upload_screenshot'
from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.19.0/lib/spaceship/tunes/tunes_client.rb:443:in `upload_screenshot'
from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.19.0/lib/spaceship/tunes/app_version.rb:348:in `upload_screenshot!'
from /Library/Ruby/Gems/2.0.0/gems/deliver-1.6.6/lib/deliver/upload_screenshots.rb:42:in `block (2 levels) in upload'
from /Library/Ruby/Gems/2.0.0/gems/deliver-1.6.6/lib/deliver/upload_screenshots.rb:29:in `each'
from /Library/Ruby/Gems/2.0.0/gems/deliver-1.6.6/lib/deliver/upload_screenshots.rb:29:in `block in upload'
from /Library/Ruby/Gems/2.0.0/gems/deliver-1.6.6/lib/deliver/upload_screenshots.rb:27:in `each'
from /Library/Ruby/Gems/2.0.0/gems/deliver-1.6.6/lib/deliver/upload_screenshots.rb:27:in `upload'
from /Library/Ruby/Gems/2.0.0/gems/deliver-1.6.6/lib/deliver/runner.rb:54:in `upload_metadata'
from /Library/Ruby/Gems/2.0.0/gems/deliver-1.6.6/lib/deliver/runner.rb:21:in `run'
from /Library/Ruby/Gems/2.0.0/gems/deliver-1.6.6/lib/deliver/commands_generator.rb:49:in `block (2 levels) in run'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:68:in `run!'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
from /Library/Ruby/Gems/2.0.0/gems/deliver-1.6.6/lib/deliver/commands_generator.rb:107:in `run'
from /Library/Ruby/Gems/2.0.0/gems/deliver-1.6.6/lib/deliver/commands_generator.rb:12:in `start'
from /Library/Ruby/Gems/2.0.0/gems/deliver-1.6.6/bin/deliver:5:in `<top (required)>'
from /usr/local/bin/deliver:23:in `load'
from /usr/local/bin/deliver:23:in `<main>'

I've also tried uploading screenshots directly with iTunes Connect (also for the first time ever on this particular iOS app I'm working on), and am receiving a 400 error from Apple:

https://du-itc.itunes.apple.com/upload/image Failed to load resource: the server responded with a status of 400 (Bad Request)

Unfortunately, at this point I don't know if the problem is with the screenshots I'm uploading, or iTunes Connect, or deliver, or some combination. Did I just happen to try and do screenshots on a day where iTC is borked? 🤔

scottrhoyt commented 8 years ago

I just received the same result.

My workaround was to skip_screenshots and skip_metadata since they hadn't changed.

winzig commented 8 years ago

OK, at least I know it isn't me. FWIW, I called Apple tech support for iTC and filed a report with them. They sent me an email asking for more info, I sent it back with all the details. Seems like more alarms should be going off on their end, but the tech I spoke with didn't seem to think there was a widespread outage.....

fastlanebot commented 8 years ago

This issue was migrated to https://github.com/fastlane/fastlane/issues/2127. Please post all further comments there.

fastlane is now a mono repo, you can read more about the change in our blog post. All tools are now available in the fastlane main repo :rocket: