fastlane / fastlane

🚀 The easiest way to automate building and releasing your iOS and Android apps

Home Page:https://fastlane.tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

deliver ios - 'privacyPolicyText' must not contain control characters

sidferreira opened this issue · comments

New Issue Checklist

Issue Description

Trying to run deliver using file-based metadata is throwing the error below:

#<Thread:0x00007fd08423f5a8 .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/fastlane_core/lib/fastlane_core/queue_worker.rb:37 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
	6: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/fastlane_core/lib/fastlane_core/queue_worker.rb:40:in `block (2 levels) in start'
	5: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/deliver/lib/deliver/upload_metadata.rb:218:in `block in upload'
	4: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/models/app_info_localization.rb:34:in `update'
	3: from /Users/sidferreira/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/forwardable.rb:235:in `patch_app_info_localization'
	2: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/tunes/tunes.rb:720:in `patch_app_info_localization'
	1: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/api_client.rb:135:in `patch'
.../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/api_client.rb:204:in `handle_response': 

An attribute value has invalid characters. - 'privacyPolicyText' must not contain control characters (for example, null, new lines, carriage returns, escape, and other invisible characters). - /data/attributes/privacyPolicyText (Spaceship::UnexpectedResponse)
Command executed

Have been using this for months

    deliver(
      # submit_for_review: true,
      app_version: lane[:app_version],
      build_number: lane[:build_number],
      platform: 'ios',
      metadata_path: 'fastlane/metadata/ios',
      skip_binary_upload: true,
      skip_screenshots: true,
      skip_app_version_update: true,
      # include_in_app_purchases: false
    )
Complete output when running fastlane, including the stack trace and command used
 
bundle exec fastlane ios upload_metadata app_version:"1.2.3" build_number:"1234"     

[✔] 🚀
+-------------------------------------------+---------+------------------------------------------------------+
| Used plugins |
+-------------------------------------------+---------+------------------------------------------------------+
| Plugin | Version | Action |
+-------------------------------------------+---------+------------------------------------------------------+
| fastlane-plugin-firebase_app_distribution | 0.3.4 | firebase_app_distribution_login, |
| | | firebase_app_distribution_add_testers, |
| | | firebase_app_distribution_get_udids, |
| | | firebase_app_distribution, |
| | | firebase_app_distribution_get_latest_release, |
| | | firebase_app_distribution_remove_testers |
| fastlane-plugin-increment_version_code | 0.4.3 | increment_version_code |
| fastlane-plugin-bugsnag | 2.2.1 | upload_symbols_to_bugsnag, send_build_to_bugsnag |
| fastlane-plugin-versioning_android | 0.1.0 | android_get_version_name, android_set_version_code, |
| | | android_set_version_name, android_get_version_code |
| fastlane-plugin-load_json | 0.0.1 | load_json |
| fastlane-plugin-sentry | 1.12.0 | sentry_upload_dsym, sentry_set_commits, |
| | | sentry_upload_sourcemap, sentry_finalize_release, |
| | | sentry_upload_file, sentry_create_deploy, |
| | | sentry_upload_proguard, sentry_create_release, |
| | | sentry_check_cli_installed, sentry_upload_dif |
| fastlane-plugin-instabug_official | 0.3.3 | instabug_official |
+-------------------------------------------+---------+------------------------------------------------------+

[06:21:40]: Driving the lane 'ios upload_metadata' 🚀
[06:21:40]: ---------------------
[06:21:40]: --- Step: deliver ---
[06:21:40]: ---------------------
[06:21:40]: Login to App Store Connect ()
[06:21:44]: Login successful

+--------------------------------------+------------------------+
| deliver 2.205.2 Summary |
+--------------------------------------+------------------------+
| app_version | 1.2.3 |
| build_number | 1234 |
| platform | ios |
| metadata_path | fastlane/metadata/ios |
| skip_binary_upload | true |
| skip_screenshots | true |
| skip_app_version_update | true |
| screenshots_path | ./fastlane/screenshots |
| username | ... |
| app_identifier | ... |
| edit_live | false |
| use_live_version | false |
| skip_metadata | false |
| force | false |
| overwrite_screenshots | false |
| sync_screenshots | false |
| submit_for_review | false |
| reject_if_possible | false |
| phased_release | false |
| reset_ratings | false |
| team_id | ... |
| dev_portal_team_id | ... |
| run_precheck_before_submit | true |
| precheck_default_rule_level | warn |
| ignore_language_directory_validation | false |
| precheck_include_in_app_purchases | true |
+--------------------------------------+------------------------+

[06:21:54]: Loading 'fastlane/metadata/ios/zh-Hans/description.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/zh-Hans/keywords.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/zh-Hans/release_notes.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/zh-Hans/support_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/zh-Hans/marketing_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/zh-Hans/promotional_text.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/zh-Hans/name.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/zh-Hans/subtitle.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/zh-Hans/privacy_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/zh-Hans/apple_tv_privacy_policy.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/zh-Hant/description.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/zh-Hant/keywords.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/zh-Hant/release_notes.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/zh-Hant/support_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/zh-Hant/marketing_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/zh-Hant/promotional_text.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/zh-Hant/name.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/zh-Hant/subtitle.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/zh-Hant/privacy_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/zh-Hant/apple_tv_privacy_policy.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/fr-FR/description.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/fr-FR/keywords.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/fr-FR/release_notes.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/fr-FR/support_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/fr-FR/marketing_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/fr-FR/promotional_text.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/fr-FR/name.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/fr-FR/subtitle.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/fr-FR/privacy_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/fr-FR/apple_tv_privacy_policy.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/de-DE/description.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/de-DE/keywords.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/de-DE/release_notes.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/de-DE/support_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/de-DE/marketing_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/de-DE/promotional_text.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/de-DE/name.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/de-DE/subtitle.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/de-DE/privacy_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/de-DE/apple_tv_privacy_policy.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/sv/description.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/sv/keywords.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/sv/release_notes.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/sv/support_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/sv/marketing_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/sv/promotional_text.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/sv/name.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/sv/subtitle.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/sv/privacy_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/sv/apple_tv_privacy_policy.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/es-ES/description.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/es-ES/keywords.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/es-ES/release_notes.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/es-ES/support_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/es-ES/marketing_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/es-ES/promotional_text.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/es-ES/name.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/es-ES/subtitle.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/es-ES/privacy_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/es-ES/apple_tv_privacy_policy.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/ja/description.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/ja/keywords.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/ja/release_notes.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/ja/support_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/ja/marketing_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/ja/promotional_text.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/ja/name.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/ja/subtitle.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/ja/privacy_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/ja/apple_tv_privacy_policy.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/it/description.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/it/keywords.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/it/release_notes.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/it/support_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/it/marketing_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/it/promotional_text.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/it/name.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/it/subtitle.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/it/privacy_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/it/apple_tv_privacy_policy.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/ru/description.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/ru/keywords.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/ru/release_notes.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/ru/support_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/ru/marketing_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/ru/promotional_text.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/ru/name.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/ru/subtitle.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/ru/privacy_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/ru/apple_tv_privacy_policy.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/nl-NL/description.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/nl-NL/keywords.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/nl-NL/release_notes.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/nl-NL/support_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/nl-NL/marketing_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/nl-NL/promotional_text.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/nl-NL/name.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/nl-NL/subtitle.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/nl-NL/privacy_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/nl-NL/apple_tv_privacy_policy.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/pt-PT/description.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/pt-PT/keywords.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/pt-PT/release_notes.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/pt-PT/support_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/pt-PT/marketing_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/pt-PT/promotional_text.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/pt-PT/name.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/pt-PT/subtitle.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/pt-PT/privacy_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/pt-PT/apple_tv_privacy_policy.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/pt-BR/description.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/pt-BR/keywords.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/pt-BR/release_notes.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/pt-BR/support_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/pt-BR/marketing_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/pt-BR/promotional_text.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/pt-BR/name.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/pt-BR/subtitle.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/pt-BR/privacy_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/pt-BR/apple_tv_privacy_policy.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/ko/description.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/ko/keywords.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/ko/release_notes.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/ko/support_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/ko/marketing_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/ko/promotional_text.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/ko/name.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/ko/subtitle.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/ko/privacy_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/ko/apple_tv_privacy_policy.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/en-US/description.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/en-US/keywords.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/en-US/release_notes.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/en-US/support_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/en-US/marketing_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/en-US/promotional_text.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/en-US/name.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/en-US/subtitle.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/en-US/privacy_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/en-US/apple_tv_privacy_policy.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/tr/description.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/tr/keywords.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/tr/release_notes.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/tr/support_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/tr/marketing_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/tr/promotional_text.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/tr/name.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/tr/subtitle.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/tr/privacy_url.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/tr/apple_tv_privacy_policy.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/copyright.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/primary_category.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/secondary_category.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/primary_first_sub_category.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/primary_second_sub_category.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/secondary_first_sub_category.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/secondary_second_sub_category.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/review_information/first_name.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/review_information/last_name.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/review_information/phone_number.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/review_information/email_address.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/review_information/demo_user.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/review_information/demo_password.txt'...
[06:21:54]: Loading 'fastlane/metadata/ios/review_information/notes.txt'...
[06:21:54]: Verifying the upload via the HTML file can be disabled by either adding
[06:21:54]: force true to your Deliverfile or using fastlane deliver --force
[06:21:54]: Does the Preview on path './fastlane/Preview.html' look okay for you? (y/n)
y
[06:21:59]: HTML file confirmed...
[06:22:02]: Will begin uploading metadata for '1.2.3' on App Store Connect
[06:22:02]: Release type will not be set because neither automatic_release nor auto_release_date were provided. Please explicitly set one of these options if you need a release type set
[06:22:02]: Uploading metadata to App Store Connect for version
[06:22:07]: Uploading metadata to App Store Connect for localized version 'sv'
[06:22:07]: Uploading metadata to App Store Connect for localized version 'zh-Hans'
[06:22:07]: Uploading metadata to App Store Connect for localized version 'en-US'
[06:22:07]: Uploading metadata to App Store Connect for localized version 'ja'
[06:22:07]: Uploading metadata to App Store Connect for localized version 'ru'
[06:22:07]: Uploading metadata to App Store Connect for localized version 'de-DE'
[06:22:07]: Uploading metadata to App Store Connect for localized version 'es-ES'
[06:22:07]: Uploading metadata to App Store Connect for localized version 'zh-Hant'
[06:22:07]: Uploading metadata to App Store Connect for localized version 'pt-BR'
[06:22:07]: Uploading metadata to App Store Connect for localized version 'it'
[06:22:07]: Uploading metadata to App Store Connect for localized version 'nl-NL'
[06:22:07]: Uploading metadata to App Store Connect for localized version 'fr-FR'
[06:22:07]: Uploading metadata to App Store Connect for localized version 'ko'
[06:22:07]: Uploading metadata to App Store Connect for localized version 'pt-PT'
[06:22:07]: Uploading metadata to App Store Connect for localized version 'tr'
[06:22:08]: Uploading metadata to App Store Connect for localized info 'fr-FR'
[06:22:08]: Uploading metadata to App Store Connect for localized info 'it'
[06:22:08]: Uploading metadata to App Store Connect for localized info 'zh-Hant'
[06:22:08]: Uploading metadata to App Store Connect for localized info 'nl-NL'
[06:22:08]: Uploading metadata to App Store Connect for localized info 'tr'
[06:22:08]: Uploading metadata to App Store Connect for localized info 'zh-Hans'
[06:22:08]: Uploading metadata to App Store Connect for localized info 'es-ES'
[06:22:08]: Uploading metadata to App Store Connect for localized info 'pt-BR'
[06:22:08]: Uploading metadata to App Store Connect for localized info 'pt-PT'
[06:22:08]: Uploading metadata to App Store Connect for localized info 'sv'
#<Thread:0x00007fd08423f5a8 .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/fastlane_core/lib/fastlane_core/queue_worker.rb:37 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
6: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/fastlane_core/lib/fastlane_core/queue_worker.rb:40:in block (2 levels) in start' 5: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/deliver/lib/deliver/upload_metadata.rb:218:in block in upload'
4: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/models/app_info_localization.rb:34:in update' 3: from ~/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/forwardable.rb:235:in patch_app_info_localization'
2: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/tunes/tunes.rb:720:in patch_app_info_localization' 1: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/api_client.rb:135:in patch'
.../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/api_client.rb:204:in handle_response': An attribute value has invalid characters. - 'privacyPolicyText' must not contain control characters (for example, null, new lines, carriage returns, escape, and other invisible characters). - /data/attributes/privacyPolicyText (Spaceship::UnexpectedResponse) #<Thread:0x00007fd08423f6c0 .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/fastlane_core/lib/fastlane_core/queue_worker.rb:37 run> terminated with exception (report_on_exception is true): Traceback (most recent call last): 6: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/fastlane_core/lib/fastlane_core/queue_worker.rb:40:in block (2 levels) in start'
5: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/deliver/lib/deliver/upload_metadata.rb:218:in block in upload' 4: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/models/app_info_localization.rb:34:in update'
3: from ~/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/forwardable.rb:235:in patch_app_info_localization' 2: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/tunes/tunes.rb:720:in patch_app_info_localization'
1: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/api_client.rb:135:in patch' .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/api_client.rb:204:in handle_response': An attribute value has invalid characters. - 'privacyPolicyText' must not contain control characters (for example, null, new lines, carriage returns, escape, and other invisible characters). - /data/attributes/privacyPolicyText (Spaceship::UnexpectedResponse)
#<Thread:0x00007fd08423ef90 .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/fastlane_core/lib/fastlane_core/queue_worker.rb:37 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
6: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/fastlane_core/lib/fastlane_core/queue_worker.rb:40:in block (2 levels) in start' 5: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/deliver/lib/deliver/upload_metadata.rb:218:in block in upload'
4: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/models/app_info_localization.rb:34:in update' 3: from ~/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/forwardable.rb:235:in patch_app_info_localization'
2: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/tunes/tunes.rb:720:in patch_app_info_localization' 1: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/api_client.rb:135:in patch'
.../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/api_client.rb:204:in handle_response': An attribute value has invalid characters. - 'privacyPolicyText' must not contain control characters (for example, null, new lines, carriage returns, escape, and other invisible characters). - /data/attributes/privacyPolicyText (Spaceship::UnexpectedResponse) #<Thread:0x00007fd08423f328 .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/fastlane_core/lib/fastlane_core/queue_worker.rb:37 run> terminated with exception (report_on_exception is true): Traceback (most recent call last): 6: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/fastlane_core/lib/fastlane_core/queue_worker.rb:40:in block (2 levels) in start'
5: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/deliver/lib/deliver/upload_metadata.rb:218:in block in upload' 4: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/models/app_info_localization.rb:34:in update'
3: from ~/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/forwardable.rb:235:in patch_app_info_localization' 2: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/tunes/tunes.rb:720:in patch_app_info_localization'
1: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/api_client.rb:135:in patch' .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/api_client.rb:204:in handle_response': An attribute value has invalid characters. - 'privacyPolicyText' must not contain control characters (for example, null, new lines, carriage returns, escape, and other invisible characters). - /data/attributes/privacyPolicyText (Spaceship::UnexpectedResponse)
#<Thread:0x00007fd08423fa30 .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/fastlane_core/lib/fastlane_core/queue_worker.rb:37 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
6: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/fastlane_core/lib/fastlane_core/queue_worker.rb:40:in block (2 levels) in start' 5: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/deliver/lib/deliver/upload_metadata.rb:218:in block in upload'
4: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/models/app_info_localization.rb:34:in update' 3: from ~/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/forwardable.rb:235:in patch_app_info_localization'
2: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/tunes/tunes.rb:720:in patch_app_info_localization' 1: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/api_client.rb:135:in patch'
.../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/api_client.rb:204:in `handle_response': An attribute value has invalid characters. - 'privacyPolicyText' must not contain control characters (for example, null, new lines, carriage returns, escape, and other invisible characters). - /data/attributes/privacyPolicyText (Spaceship::UnexpectedResponse)
+---------------+---------------------+
| Lane Context |
+---------------+---------------------+
| PLATFORM_NAME | ios |
| LANE_NAME | ios upload_metadata |
+---------------+---------------------+
[06:22:09]: An attribute value has invalid characters. - 'privacyPolicyText' must not contain control characters (for example, null, new lines, carriage returns, escape, and other invisible characters). - /data/attributes/privacyPolicyText
[06:22:09]: fastlane finished with errors

Looking for related GitHub issues on fastlane/fastlane...

#<Thread:0x00007fd08423f800 .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/fastlane_core/lib/fastlane_core/queue_worker.rb:37 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
6: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/fastlane_core/lib/fastlane_core/queue_worker.rb:40:in block (2 levels) in start' 5: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/deliver/lib/deliver/upload_metadata.rb:218:in block in upload'
4: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/models/app_info_localization.rb:34:in update' 3: from ~/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/forwardable.rb:235:in patch_app_info_localization'
2: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/tunes/tunes.rb:720:in patch_app_info_localization' 1: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/api_client.rb:135:in patch'
.../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/api_client.rb:204:in handle_response': An attribute value has invalid characters. - 'privacyPolicyText' must not contain control characters (for example, null, new lines, carriage returns, escape, and other invisible characters). - /data/attributes/privacyPolicyText (Spaceship::UnexpectedResponse) #<Thread:0x00007fd08423f1c0 .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/fastlane_core/lib/fastlane_core/queue_worker.rb:37 run> terminated with exception (report_on_exception is true): Traceback (most recent call last): 6: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/fastlane_core/lib/fastlane_core/queue_worker.rb:40:in block (2 levels) in start'
5: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/deliver/lib/deliver/upload_metadata.rb:218:in block in upload' 4: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/models/app_info_localization.rb:34:in update'
3: from ~/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/forwardable.rb:235:in patch_app_info_localization' 2: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/tunes/tunes.rb:720:in patch_app_info_localization'
1: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/api_client.rb:135:in patch' .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/api_client.rb:204:in handle_response': An attribute value has invalid characters. - 'privacyPolicyText' must not contain control characters (for example, null, new lines, carriage returns, escape, and other invisible characters). - /data/attributes/privacyPolicyText (Spaceship::UnexpectedResponse)
#<Thread:0x00007fd08423f918 .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/fastlane_core/lib/fastlane_core/queue_worker.rb:37 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
6: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/fastlane_core/lib/fastlane_core/queue_worker.rb:40:in block (2 levels) in start' 5: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/deliver/lib/deliver/upload_metadata.rb:218:in block in upload'
4: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/models/app_info_localization.rb:34:in update' 3: from ~/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/forwardable.rb:235:in patch_app_info_localization'
2: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/tunes/tunes.rb:720:in patch_app_info_localization' 1: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/api_client.rb:135:in patch'
.../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/api_client.rb:204:in handle_response': An attribute value has invalid characters. - 'privacyPolicyText' must not contain control characters (for example, null, new lines, carriage returns, escape, and other invisible characters). - /data/attributes/privacyPolicyText (Spaceship::UnexpectedResponse) #<Thread:0x00007fd08423f468 .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/fastlane_core/lib/fastlane_core/queue_worker.rb:37 run> terminated with exception (report_on_exception is true): Traceback (most recent call last): 6: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/fastlane_core/lib/fastlane_core/queue_worker.rb:40:in block (2 levels) in start'
5: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/deliver/lib/deliver/upload_metadata.rb:218:in block in upload' 4: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/models/app_info_localization.rb:34:in update'
3: from ~/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/forwardable.rb:235:in patch_app_info_localization' 2: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/tunes/tunes.rb:720:in patch_app_info_localization'
1: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/api_client.rb:135:in patch' .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/api_client.rb:204:in handle_response': An attribute value has invalid characters. - 'privacyPolicyText' must not contain control characters (for example, null, new lines, carriage returns, escape, and other invisible characters). - /data/attributes/privacyPolicyText (Spaceship::UnexpectedResponse)
Found no similar issues. To create a new issue, please visit:
https://github.com/fastlane/fastlane/issues/new
Run fastlane env to append the fastlane environment to your issue
Traceback (most recent call last):
6: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/fastlane_core/lib/fastlane_core/queue_worker.rb:40:in block (2 levels) in start' 5: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/deliver/lib/deliver/upload_metadata.rb:218:in block in upload'
4: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/models/app_info_localization.rb:34:in update' 3: from ~/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/forwardable.rb:235:in patch_app_info_localization'
2: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/tunes/tunes.rb:720:in patch_app_info_localization' 1: from .../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/api_client.rb:135:in patch'
.../vendor/bundle/ruby/2.7.0/gems/fastlane-2.205.2/spaceship/lib/spaceship/connect_api/api_client.rb:204:in `handle_response': \e[31m[!] An attribute value has invalid characters. - 'privacyPolicyText' must not contain control characters (for example, null, new lines, carriage returns, escape, and other invisible characters). - /data/attributes/privacyPolicyText\e[0m (Spaceship::UnexpectedResponse)

Environment

fastlane env includes sensitive information, skipping it for now.

 [REPLACE THIS WITH YOUR INFORMATION] 

It seems like you have not included the output of fastlane env
To make it easier for us help you resolve this issue, please update the issue to include the output of fastlane env 👍

we are running into the same issue since two or three weeks... nothing changed from our side

As the bot said, you'll get better help if you provide the requested information when opening issues, in particular your environment. :)

This error comes directly from Apple. So most probably something is wrong with the files content when Apple receives them. Fastlane just "streams" them to Apple so the error could be in the file or in the streaming operation.

  1. ensure that your LOCALE set up is correct
  2. double / triple check your apple_tv_privacy_policy.txt files. Is the file in source control or generated from a process? Have you added a new language? Are the files localized? If not, are they all the same? Do they contain any of the characters that could cause issues "null, new lines, carriage returns, escape, and other invisible characters"

You could add something like

UI.message `ls -la #{Dir.glob("fastlane/metadata*/*/apple_tv_privacy_policy.txt").join(" ")}`

Just before your deliver call to display information about those files.

@lacostej thank you for the input!

So, I just checked and indeed our apple_tv_privacy_policy.txt has line breaks, but it is weird as the file didn't change in a long while, and the error started to happen a couple of weeks ago.

How should we line break on that files?

@lacostej I finally had the time to test this out and the problem is indeed in that file. After removing it, the problem stops.

I have no idea why it started as it was working OK til a few weeks ago... Wondering how to break lines now...

Any updates?

ezoic increase your site revenue