fastlane: [Pilot] Unable to process validateMetadata request at this time due to a general error (1019)

New Regression Checklist

Regression Information

  • Breaking version: [e.g. 2.123.0]
  • Last working version: [e.g. 2.122.0]

Regression Description

When uploading a build to AppStoreConnect using Pilot, the action fails during the ipa upload with An error occurred while processing the json request. (1268).

Complete output when running fastlane, including the stack trace and command used
[04:31:08]: Ready to upload new build to TestFlight (App: **********)...
[04:31:10]: Going to upload updated app to App Store Connect
[04:31:10]: This might take a few minutes. Please don't interrupt the script.
[04:32:57]: [Transporter Error Output]: An error occurred while processing the json request. (1268)
[04:32:57]: Transporter transfer failed.
[04:32:57]: 
[04:32:57]: An error occurred while processing the json request. (1268)
[04:32:58]: [iTMSTransporter] [2019-05-20 04:32:57 PDT] <main> DBG-X:   parameter ErrorCode = 1268
[04:32:58]: [iTMSTransporter] [2019-05-20 04:32:57 PDT] <main> DBG-X:   parameter ErrorMessage = An error occurred while processing the json request. (1268)
[04:32:58]: [iTMSTransporter] [2019-05-20 04:32:57 PDT] <main> DBG-X:   parameter Success = false
[04:32:58]: [iTMSTransporter] [2019-05-20 04:32:57 PDT] <main> ERROR: An error occurred while processing the json request. (1268)
[04:32:58]: [iTMSTransporter] [2019-05-20 04:32:57 PDT] <main> DBG-X: The error code is: 1268
[04:32:58]: [iTMSTransporter] [2019-05-20 04:32:57 PDT] <main>  INFO: Done performing authentication.
[04:32:58]: [iTMSTransporter] 
[04:32:58]: [iTMSTransporter] 
[04:32:58]: [iTMSTransporter] 
[04:32:58]: [iTMSTransporter] Package Summary:
[04:32:58]: [iTMSTransporter]  
[04:32:58]: [iTMSTransporter] 1 package(s) were not uploaded because they had problems:
[04:32:58]: [iTMSTransporter] 	/var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/d20190520-1584-1hynie0/460060119.itmsp - Error Messages:
[04:32:58]: [iTMSTransporter] 		An error occurred while processing the json request. (1268)
[04:32:58]: [iTMSTransporter] [2019-05-20 04:32:57 PDT] <main> DBG-X: Returning 1
[04:32:58]: iTunes Transporter output above ^
[04:32:58]: An error occurred while processing the json request. (1268)
Return status of iTunes Transporter was 1: An error occurred while processing the json request. (1268)
The call to the iTMSTransporter completed with a non-zero exit status: 1. This indicates a failure.
[04:32:58]: Error uploading ipa file, for more information see above

Environment

Stack

Key Value
OS 10.14.4
Ruby 2.3.7
Bundler? true
Git git version 2.20.1 (Apple Git-117)
Installation Source ~/vendor/bundle/ruby/2.3.0/bin/fastlane
Host Mac OS X 10.14.4 (18E226)
Ruby Lib Dir /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib
OpenSSL Version LibreSSL 2.6.5
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode.app/Contents/Developer/
Xcode Version 10.2.1

System Locale

Variable Value
LANG en_US.UTF-8
LC_ALL en_US.UTF-8
LANGUAGE en_US.UTF-8

fastlane gems

Gem Version Update-Status
fastlane 2.123.0 ✅ Up-To-Date

Loaded fastlane plugins:

Plugin Version Update-Status
fastlane-plugin-slack_upload 0.1.0 ✅ Up-To-Date
Loaded gems
Gem Version
did_you_mean 1.0.0
bundler 1.17.3
io-console 0.4.5
CFPropertyList 3.0.0
concurrent-ruby 1.1.5
i18n 1.6.0
minitest 5.11.3
thread_safe 0.3.6
tzinfo 1.2.5
activesupport 5.2.3
public_suffix 2.0.5
addressable 2.6.0
atomos 0.1.3
babosa 1.0.2
claide 1.0.2
colored 1.2
colored2 3.1.2
highline 1.7.10
commander-fastlane 4.4.6
declarative 0.0.10
declarative-option 0.1.0
digest-crc 0.4.1
unf_ext 0.0.7.6
unf 0.1.4
domain_name 0.5.20180417
dotenv 2.7.2
emoji_regex 1.0.1
excon 0.64.0
multipart-post 2.0.0
faraday 0.15.4
http-cookie 1.0.3
faraday-cookie_jar 0.0.6
faraday_middleware 0.13.1
fastimage 2.1.5
gh_inspector 1.1.3
jwt 2.1.0
memoist 0.16.0
multi_json 1.13.1
os 1.0.1
signet 0.11.0
googleauth 0.6.7
httpclient 2.8.3
mime-types-data 3.2019.0331
mime-types 3.2.2
uber 0.1.0
representable 3.0.4
retriable 3.1.2
google-api-client 0.23.9
google-cloud-env 1.0.5
google-cloud-core 1.3.0
google-cloud-storage 1.16.0
json 2.2.0
mini_magick 4.5.1
multi_xml 0.6.0
plist 3.5.0
rubyzip 1.2.2
security 0.1.3
naturally 2.2.0
simctl 1.6.5
slack-notifier 2.3.2
terminal-notifier 2.0.0
unicode-display_width 1.6.0
terminal-table 1.8.0
tty-screen 0.7.0
tty-cursor 0.6.1
tty-spinner 0.9.0
word_wrap 1.0.0
nanaimo 0.2.6
xcodeproj 1.9.0
rouge 2.0.7
xcpretty 0.3.0
xcpretty-travis-formatter 1.0.0
gli 2.18.0
hashie 3.6.0
websocket-extensions 0.1.3
websocket-driver 0.7.0
slack-ruby-client 0.14.2
fastlane-plugin-slack_upload 0.1.0

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 2
  • Comments: 24 (19 by maintainers)

Most upvoted comments

It’s not regression in my opinion. I have Fastlane 2.120.0 and it was working on Friday. Today I tried to upload new build, and I got this error.

We always had those and yes, it is really confusing. (You can also add that id and identifier are two different things to that list…)

We would be very happy to accept a PR that validates the apple_id parameter of upload_to_testflight as you proposed! (Or for now at least an issue that requests this as an enhancement)

It worked! 🎉

So how about validating the apple_id option then? Making sure it is an identifier and not an email? It could avoid further misunderstanding 😆

Also, we might want to update the documentation then, see for instance the Appfile documentation (https://docs.fastlane.tools/advanced/Appfile), where it specifies in the example the apple_id as an email address 😆

That PR https://github.com/fastlane/fastlane/pull/14456 might have accidentally solved a long standing bug here by adding this line: https://github.com/fastlane/fastlane/pull/14456/files#diff-fea25795a948f654956181246f9cb558R46 (which was all @joshdholtz by the way). It seems to me before the apple_id option was not actually used in that code, and now it is (as it should be, as it saves a few requests to Apple).

I think you are using the wrong value for appleId:

apple_id | The unique App ID provided by App Store Connect

https://docs.fastlane.tools/actions/upload_to_testflight/#parameters

Why do you need to set that value? Does it work without that one?

Yay, progess. Oh no, that is my PR 🥇

Can you point out the line of that PR you think caused it? apple_id is meant to be an app id (that comes from Apple).

Can you also please share your Fastfile so we can understand how you are calling the action?

Not really, at least I don’t see it. You are getting an error from iTMSTransporter, which is an external tool that fastlane triggers to do the upload. Which is also why I don’t really see how the update/downgrade could influence this - the tool stays the same version. Strange.

Can you compare the output you are getting with the version that is working for you? Can you maybe refactor your lane in a way so that both uploads use the exact same file? From the “fastlane summary” I see you are doing the build each time, maybe something goes wrong upstream and this is only a symptom of that?

As always we need the full, complete log and not just what comes directly before the error.

You could try running with --verbose and see if this gives additional output. I am not sure how to properly debug iTMStransporter problems otherwise 😕

I hit this and “solved it” by simply retrying. No fastlane update was done.

This certainly appears to have been on Apple’s side.

I would agree that is seems like an issue on Apple’s side 🤔 I’ve been uploading IPAs through pilot all weekend and I haven’t been seeing any issues on my side.