text:
folder structure reconstitution

어떤 기능인가요?

기존에 사용하던 route를 조금 변경하고자 합니다.

작업 상세 내용

[ ] layout 적용을 위한 환경 만들기
[ ] 앞으로 만들어야 할 페이지 모두 구성하기
[ ] 컴포넌트 폴더를 private folder를 사용해서 구성하기
[ ] 모달 구현시, 페러렐 라우트를 활용해서 구현하기

참고할만한 자료(선택)
인프런 제로초 next.js강의

Branch modify/folder_structure_reconsti/#65 created for issue: folder structure reconstitution


text:
learn.lr_find AttributeError

learn = Learner(dls, fasthugs_model, opt_func=opt_func, splitter=splitter, loss_func=loss, cbs=cbs, metrics=[accuracy])
learn.lr_find(show_plot=True)
produces error:
AttributeError                            Traceback (most recent call last)
/content/fastai2/fastai2/learner.py in fit(self, n_epoch, lr, wd, cbs, reset_opt)
187             try:
--> 188                 self._do_begin_fit(n_epoch)
189                 for epoch in range(n_epoch):
26 frames
AttributeError: 'str' object has no attribute 'type'
During handling of the above exception, another exception occurred:
AttributeError                            Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/fastprogress/fastprogress.py in on_iter_end(self)
155             total_time = format_time(time.time() - self.main_bar.start_t)
156             self.text = f'Total time: {total_time} ' + self.text
--> 157         self.out.update(HTML(self.text))
158
159     def add_child(self, child):
AttributeError: 'NBMasterBar' object has no attribute 'out'
Run in Google Colab
Setup as specified elsewhere:
 !pip install transformers
!git clone https://github.com/fastai/fastai2
%cd fastai2
!pip install -e ".[dev]"
!pip uninstall --y fastprogress
!pip install git+https://github.com/fastai/fastprogress --upgrade

It's impossible to fix your problem without seeing the code you have executed. There is a problem when you try to train, that could come either from the data collection, the model, the loss function, the optimizer, and just giving the last line of the error message is not enough.
Please use the forum to debug your code as we keep issues for known bugs only. Please refer to this topic to efficiently ask for help.

source: gharchive/issue

authors: randywreed sgugger

license_type: permissive

license_source: github-api


text:
Setup Local Environment in Window - CRLF to LF token issue '$\r'

Related Issue:
https://github.com/fastai/fastpages/issues/144
The changes are so tiny that Git cannot detect it, I have to add/remove a line to let Git to commit.
Convert CRLF command
sed -i 's/\r//g' /fastpages/action_entrypoint.sh
Proof
To see that it is actually changed. Notice the changes for file action_entrypoint.sh after I clean up with sed -i 's/\r//g' action_entrypoint.sh
1st time: action_entrypoint.sh: Bourne-Again shell script, ASCII text executable, with CRLF line terminators
2st time: action_entrypoint.sh: Bourne-Again shell script, ASCII text executable

Can you please explain more regarding what these changes are doing?
/preview

I may not be an expert on this. But I found quite a few post discussing the issue around this carriage return.
Then I use docker exec to jump into watcher_1 to check if those files are exist, they did.
Then I just run bash /fastpages/action_entrypoint.sh, and it throws error related to $'\r'
So I clean it up and try to commit, Git did see the changes, but when I actually add it , it wouldn't appear in staging, so I have to remove/add a newline to commit.
https://unix.stackexchange.com/questions/108588/shebang-line-not-working-with-cr-lf

Closing this PR for now until we can reproduce this error.  I tried on a windows VM and could not seem to reproduce this.

https://willi.am/blog/2016/08/11/docker-for-windows-dealing-with-windows-line-endings/
some related article.

@noklam running the shell script outside the docker container is not a good idea, and is not a good way to test this code.  This is because this is not the same environment that will build your blog.
It seems like your error has something to do with starting the container, not a carriage return

@noklam if you try cloning this branch into a new folder
git clone https://github.com/fastai/fastpages.git
git checkout -b noklam-makefile_in_window master
git pull https://github.com/noklam/fastpages.git makefile_in_window
and then do
cd fastpages
make build
make server
Do the errors get fixed for you?

I'll go ahead and merge as this doesn't break anything on the linux side

I am not running the shell script out of the container. I run it within the shell of watcher_1,  as this is where the error got thrown up.
docker exec -it xxxxxxxxxxxxxxxxxxxxx bash (The watcher_1 id)
bash /fastpages/action_entrypoint.sh

To make sure it's not just one-time problem, I reproduce this same error on another Window Machine.

@hamelsmu  This works for me.

@noklam if you try cloning this branch into a new folder
git clone https://github.com/fastai/fastpages.git
git checkout -b noklam-makefile_in_window master
git pull https://github.com/noklam/fastpages.git makefile_in_window
and then do
cd fastpages
make build
make server
Do the errors get fixed for you?

That’s great

source: gharchive/pull-request

authors: hamelsmu noklam

repo: fastai/fastpages


text:
CVE-2017-5402 - Vulnerability of non-maven product mapped to maven package

According to the description, CVE-2017-5402 relates to:

This vulnerability affects Firefox < 52, Firefox ESR < 45.8, Thunderbird < 52, and Thunderbird < 45.8.

However, it mapped to pkg:maven/org.apache.tomcat/tomcat@9.0
CVE-2017-5402.json.gz

Mapped to another Maven package now:
pkg:maven/com.kitfox.svg/svg-salamander@9.0, which does not exist with version 9.0 (but only 1.0).
CVE-2017-5402-2.json.gz

repo: fasten-project/vulnerability-producer


text:
URL query is not decoded when using ALB

Prerequisites

[X] I have written a descriptive issue title
[X] I have searched existing issues to ensure the bug has not already been reported

Fastify version
all
Plugin version
2.0.2
Node.js version
14
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
not applicable
Description
When using Lambda as a target for an ALB, the queryStringParameters in the Lambda event is not decoded, unlike with API Gateway. This isn't really well documented, but there's a small section in the docs that mentions this (not really sure why they put it under the "multi-value headers" section, but it applies to the queryStringParameters and multiValueQueryStringParameters properties):

If the query parameters are URL-encoded, the load balancer does not decode them. You must decode them in your Lambda function.

Steps to Reproduce
This test fails:
test('GET with encoded query values', async (t) => {
  t.plan(1)

  const app = fastify()
  app.get('/test', async (request, reply) => {
    reply.send(request.query)
  })
  const proxy = awsLambdaFastify(app)

  const ret = await proxy({
    requestContext: {
      elb: {
        targetGroupArn: 'xxx'
      }
    },
    httpMethod: 'GET',
    path: '/test',
    queryStringParameters: {
      q: 'foo%3Fbar'
    }
  }))
  t.equal(ret.body, '{"q":"foo?bar"}')
})

Expected Behavior
When the Lambda is invoked by ALB (detectable by presence of requestContext.elb object on event), the values for queryStringParameter and multiValueQueryStringParameters should be decoded before being passed to fastify.

Would you like to send a Pull Request to address this? Remember to add unit tests.

//cc @danielsan

repo: fastify/aws-lambda-fastify

license: MIT


text:
Crash when try to add already existing device by register_devices action

register_devices crashes when device already exists.
Crash number: 413cf8bcc5c4fe8f9530a83c63961403
CC @lmirosevic

Can you please provide the version and the full log?

I can't reproduce this, I always run register_devices with already registered devices in there and it works as it should. The action was designed to be idempotent.

fastlane 1.49.0
{
  "event_id": "413cf8bcc5c4fe8f9530a83c63961403",
  "message": "RuntimeError: The device UDID 'b6fef6903ed471ad50fd3bcf18495cd153326333' already exists on this team.",
  "timestamp": "2016-01-12T13:38:01",
  "time_spent": null,
  "level": 40,
  "project": null,
  "platform": "ruby",
  "logger": "",
  "culprit": "spaceship/portal/device.rb in create! at line 151",
  "server_name": "npi7efa96.fxpro.local",
  "modules": {
    "abstract_type": "0.0.7",
    "actionmailer": "4.1.4",
    "actionpack": "4.1.4",
    "actionview": "4.1.4",
    "activejob": "4.2.0",
    "activemodel": "4.1.4",
    "activerecord": "4.1.4",
    "activesupport": "4.1.4",
    "adamantium": "0.2.0",
    "addressable": "2.3.6",
    "ansi": "1.5.0",
    "arel": "5.0.1.20140414130214",
    "ast": "2.0.0",
    "astrolabe": "1.3.0",
    "autoparse": "0.3.3",
    "aws-sdk": "1.59.0",
    "aws-sdk-core": "2.0.29",
    "aws-sdk-resources": "2.0.29",
    "aws-sdk-v1": "1.59.0",
    "babosa": "1.0.2",
    "bcrypt": "3.1.9",
    "bcrypt-ruby": "3.0.1",
    "bigdecimal": "1.2.4",
    "bitbucket-cli": "0.0.3",
    "bitbucket_rest_api": "0.1.7",
    "buftok": "0.2.0",
    "builder": "3.2.2",
    "bumper_pusher": "0.1.17",
    "bundle": "0.0.1",
    "bundler": "1.7.6",
    "bundler-unload": "1.0.2",
    "capybara": "2.4.4",
    "cert": "0.1.5",
    "certified": "1.0.0",
    "changelog_merger": "0.1.2.1",
    "childprocess": "0.5.6",
    "choice": "0.1.6",
    "claide": "0.7.0",
    "clamp": "0.6.5",
    "cliver": "0.3.2",
    "cocoapods": "0.36.0.rc.1",
    "cocoapods-core": "0.35.0",
    "cocoapods-deintegrate": "0.2.1",
    "cocoapods-downloader": "0.8.0",
    "cocoapods-plugins": "0.3.2",
    "cocoapods-search": "0.1.0",
    "cocoapods-stats": "0.6.1",
    "cocoapods-trunk": "0.4.1",
    "cocoapods-try": "0.4.2",
    "codeclimate-test-reporter": "0.4.7",
    "coderay": "1.1.0",
    "coffee-rails": "4.0.1",
    "coffee-script": "2.2.0",
    "coffee-script-source": "1.7.0",
    "colored": "1.2",
    "colorize": "0.7.7",
    "commander": "4.2.1",
    "concord": "0.1.5",
    "constraintClean": "1.0.3",
    "coveralls": "0.7.12",
    "crack": "0.4.2",
    "credentials_manager": "0.2.1",
    "cupertino": "1.3.0",
    "daemons": "1.2.3",
    "debase": "0.1.0",
    "debase-ruby_core_source": "0.7.2",
    "deliver": "0.9.1",
    "descendants_tracker": "0.0.4",
    "diff-lcs": "1.2.5",
    "docile": "1.1.5",
    "domain_name": "0.5.23",
    "dotenv": "0.11.1",
    "dotenv-deployment": "0.0.2",
    "em-synchrony": "1.0.3",
    "equalizer": "0.0.9",
    "erubis": "2.7.0",
    "escape": "0.0.4",
    "eventmachine": "1.0.3",
    "excon": "0.45.1",
    "execjs": "2.2.1",
    "executable-hooks": "1.3.2",
    "extlib": "0.9.16",
    "facets": "3.0.0",
    "faraday": "0.8.9",
    "faraday-cookie_jar": "0.0.6",
    "faraday_middleware": "0.9.1",
    "fastimage": "1.6.8",
    "fastlane": "0.7.0",
    "fastlane_core": "0.5.2",
    "ffi": "1.9.8",
    "filewatcher": "0.5.2",
    "foreman": "0.78.0",
    "frameit": "1.0.0",
    "fuzzy_match": "2.0.4",
    "gem-wrappers": "1.2.7",
    "git": "1.2.8",
    "git-up": "0.5.12",
    "github_api": "0.12.2",
    "github_changelog_generator": "1.10.0",
    "globalid": "0.3.3",
    "google-api-client": "0.8.6",
    "googleauth": "0.4.2",
    "grit": "2.5.0",
    "gym": "1.2.0",
    "hashie": "3.3.1",
    "highline": "1.6.21",
    "hike": "1.2.3",
    "httmultiparty": "0.3.16",
    "http": "0.6.3",
    "http-cookie": "1.0.2",
    "http-form_data": "1.0.0",
    "http_parser.rb": "0.6.0",
    "httparty": "0.11.0",
    "hub": "1.12.4",
    "i18n": "0.6.9",
    "ice_nine": "0.11.1",
    "iniparse": "1.4.0",
    "io-console": "0.4.2",
    "jbuilder": "2.1.1",
    "jmespath": "1.0.2",
    "jquery-rails": "3.1.1",
    "json": "1.7.7",
    "jwt": "1.0.0",
    "kgio": "2.9.2",
    "krausefx-shenzhen": "0.14.2",
    "launchy": "2.2.0",
    "little-plugger": "1.1.4",
    "logging": "2.0.0",
    "lolcat": "42.1.0",
    "lolcommits": "0.5.7",
    "loofah": "2.0.1",
    "lunchy": "0.8.0",
    "mail": "2.5.4",
    "match": "0.2.2",
    "mechanize": "2.5.1",
    "memoist": "0.12.0",
    "memoizable": "0.4.2",
    "methadone": "1.2.6",
    "method_source": "0.8.2",
    "mime-types": "1.25.1",
    "mimemagic": "0.2.1",
    "mini_magick": "3.8.1",
    "mini_portile": "0.6.1",
    "minitest": "4.7.5",
    "molinillo": "0.1.2",
    "multi_json": "1.10.1",
    "multi_xml": "0.5.5",
    "multipart-post": "1.2.0",
    "nap": "0.8.0",
    "naught": "1.0.0",
    "net-http-digest_auth": "1.4",
    "net-http-persistent": "2.9.4",
    "net-sftp": "2.1.2",
    "net-ssh": "2.9.1",
    "netrc": "0.7.8",
    "nokogiri": "1.6.4",
    "ntlm-http": "0.1.1",
    "oauth": "0.4.7",
    "oauth2": "1.0.0",
    "oauth2-client": "1.1.3",
    "octokit": "4.0.1",
    "oj": "2.0.14",
    "open4": "1.3.4",
    "overcommit": "0.25.0",
    "paint": "0.8.7",
    "parser": "2.2.0.3",
    "pbxplorer": "1.0.0",
    "pdf-core": "0.5.1",
    "pem": "0.4.0",
    "phantomjs": "1.9.8.0",
    "pilot": "0.2.0",
    "plist": "3.1.0",
    "poltergeist": "1.5.1",
    "polyglot": "0.3.5",
    "posix-spawn": "0.3.9",
    "power_assert": "0.2.1",
    "powerpack": "0.1.0",
    "prawn": "2.0.1",
    "private_attr": "1.1.0",
    "procto": "0.0.2",
    "produce": "0.2.0",
    "pry": "0.10.1",
    "psych": "2.0.5",
    "rack": "1.5.2",
    "rack-test": "0.6.2",
    "rails": "4.1.4",
    "rails-deprecated_sanitizer": "1.0.3",
    "rails-dom-testing": "1.0.5",
    "rails-html-sanitizer": "1.0.1",
    "rails_12factor": "0.0.2",
    "rails_serve_static_assets": "0.0.1",
    "rails_stdout_logging": "0.0.2",
    "railties": "4.1.4",
    "rainbow": "2.0.0",
    "raindrops": "0.13.0",
    "rake": "10.1.0",
    "rdoc": "4.1.0",
    "reek": "3.1",
    "rest-client": "1.6.8",
    "retriable": "1.4.1",
    "rouge": "1.10.1",
    "rspec": "3.1.0",
    "rspec-core": "3.1.7",
    "rspec-expectations": "3.1.2",
    "rspec-mocks": "3.1.3",
    "rspec-support": "3.1.2",
    "rubocop": "0.29.1",
    "ruby-debug-ide": "0.4.23.beta11",
    "ruby-lint": "2.0.3",
    "ruby-progressbar": "1.7.5",
    "rubygems-bundler": "1.4.4",
    "rubygems-update": "2.4.4",
    "rubyzip": "1.1.6",
    "rvm": "1.11.3.9",
    "safe_yaml": "1.0.4",
    "sass": "3.2.19",
    "sass-rails": "4.0.3",
    "sawyer": "0.6.0",
    "scan": "0.3.3",
    "sdoc": "0.4.0",
    "security": "0.1.3",
    "sentry-raven": "0.15.2",
    "shenzhen": "0.9.0",
    "shopify_theme": "0.0.25",
    "sigh": "0.4.9",
    "signet": "0.6.1",
    "simple_oauth": "0.3.0",
    "simplecov": "0.9.2",
    "simplecov-html": "0.9.0",
    "slack-notifier": "1.2.0",
    "slop": "3.6.0",
    "snapshot": "0.6.1",
    "spaceship": "0.0.15",
    "spring": "1.1.3",
    "sprockets": "2.11.0",
    "sprockets-rails": "2.1.3",
    "sqlite3": "1.3.10",
    "subexec": "0.2.3",
    "supply": "0.2.2",
    "synx": "0.0.61",
    "term-ansicolor": "1.0.7",
    "terminal-notifier": "1.6.2",
    "terminal-table": "1.4.5",
    "test-unit": "2.1.5.0",
    "thor": "0.19.1",
    "thread_safe": "0.3.4",
    "tilt": "1.4.1",
    "tins": "1.3.5",
    "treetop": "1.4.15",
    "trollop": "1.16.2",
    "ttfunk": "1.4.0",
    "tumblr_client": "0.8.5",
    "turbolinks": "2.2.2",
    "twitter": "4.8.1",
    "tzinfo": "1.2.1",
    "uglifier": "2.5.1",
    "unf": "0.1.4",
    "unf_ext": "0.0.6",
    "unicorn": "4.8.3",
    "unparser": "0.2.4",
    "webmock": "1.19.0",
    "webrobots": "0.1.1",
    "websocket-driver": "0.5.4",
    "websocket-extensions": "0.1.2",
    "xcode-install": "1.0.1",
    "xcodeproj": "0.20.2",
    "xcpretty": "0.1.10",
    "xcpretty-travis-formatter": "0.0.3",
    "xml-simple": "1.1.5",
    "xpath": "2.0.0",
    "yam": "2.0.2",
    "yard": "0.8.7.6"
  },
  "extra": {
  },
  "tags": {
  },
  "user": {
  },
  "exception": {
    "values": [
      {
        "type": "RuntimeError",
        "value": "The device UDID 'b6fef6903ed471ad50fd3bcf18495cd153326333' already exists on this team.",
        "module": "",
        "stacktrace": {
          "frames": [
            {
              "pre_context": [
                "  warn \"unable to load executable-hooks/hooks\" if ENV.key?('ExecutableHooks_DEBUG')\n",
                "end\n",
                "\n"
              ],
              "post_context": [
                null,
                null,
                null
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5/bin/ruby_executable_hooks",
              "function": "<main>",
              "lineno": 15,
              "in_app": false,
              "context_line": "eval File.read($0), binding, $0\n",
              "project_root": null,
              "filename": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5/bin/ruby_executable_hooks"
            },
            {
              "pre_context": [
                "  warn \"unable to load executable-hooks/hooks\" if ENV.key?('ExecutableHooks_DEBUG')\n",
                "end\n",
                "\n"
              ],
              "post_context": [
                null,
                null,
                null
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5/bin/ruby_executable_hooks",
              "function": "eval",
              "lineno": 15,
              "in_app": false,
              "context_line": "eval File.read($0), binding, $0\n",
              "project_root": null,
              "filename": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5/bin/ruby_executable_hooks"
            },
            {
              "pre_context": [
                "end\n",
                "\n",
                "gem 'fastlane', version\n"
              ],
              "post_context": [
                null,
                null,
                null
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5/bin/fastlane",
              "function": "<main>",
              "lineno": 23,
              "in_app": false,
              "context_line": "load Gem.bin_path('fastlane', 'fastlane', version)\n",
              "project_root": null,
              "filename": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5/bin/fastlane"
            },
            {
              "pre_context": [
                "end\n",
                "\n",
                "gem 'fastlane', version\n"
              ],
              "post_context": [
                null,
                null,
                null
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5/bin/fastlane",
              "function": "load",
              "lineno": 23,
              "in_app": false,
              "context_line": "load Gem.bin_path('fastlane', 'fastlane', version)\n",
              "project_root": null,
              "filename": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5/bin/fastlane"
            },
            {
              "pre_context": [
                "\n",
                "begin\n",
                "  FastlaneCore::UpdateChecker.start_looking_for_update('fastlane')\n"
              ],
              "post_context": [
                "rescue => ex\n",
                "  FastlaneCore::CrashReporting.handle_crash(ex)\n",
                "ensure\n"
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5@global/gems/fastlane-1.49.0/bin/fastlane",
              "function": "<top (required)>",
              "lineno": 161,
              "in_app": false,
              "context_line": "  FastlaneApplication.new.run\n",
              "project_root": null,
              "filename": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5@global/gems/fastlane-1.49.0/bin/fastlane"
            },
            {
              "pre_context": [
                "\n",
                "    default_command :trigger\n",
                "\n"
              ],
              "post_context": [
                "  end\n",
                "end\n",
                "\n"
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5@global/gems/fastlane-1.49.0/bin/fastlane",
              "function": "run",
              "lineno": 155,
              "in_app": false,
              "context_line": "    run!\n",
              "project_root": null,
              "filename": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5@global/gems/fastlane-1.49.0/bin/fastlane"
            },
            {
              "pre_context": [
                "      never_trace!\n",
                "    ).each do |meth|\n",
                "      eval <<-END, binding, __FILE__, __LINE__\n"
              ],
              "post_context": [
                "          ::Commander::Runner.instance.#{meth}(*args, &block)\n",
                "        end\n",
                "      END\n"
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5@global/gems/commander-4.3.5/lib/commander/delegates.rb",
              "function": "run!",
              "lineno": 15,
              "in_app": false,
              "context_line": "        def #{meth}(*args, &block)\n",
              "project_root": null,
              "filename": "commander/delegates.rb"
            },
            {
              "pre_context": [
                "      parse_global_options\n",
                "      remove_global_options options, @args\n",
                "      if trace\n"
              ],
              "post_context": [
                "      else\n",
                "        begin\n",
                "          run_active_command\n"
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5@global/gems/commander-4.3.5/lib/commander/runner.rb",
              "function": "run!",
              "lineno": 68,
              "in_app": false,
              "context_line": "        run_active_command\n",
              "project_root": null,
              "filename": "commander/runner.rb"
            },
            {
              "pre_context": [
                "      if alias? command_name_from_args\n",
                "        active_command.run(*(@aliases[command_name_from_args.to_s] + args_without_command_name))\n",
                "      else\n"
              ],
              "post_context": [
                "      end\n",
                "    end\n",
                "\n"
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5@global/gems/commander-4.3.5/lib/commander/runner.rb",
              "function": "run_active_command",
              "lineno": 428,
              "in_app": false,
              "context_line": "        active_command.run(*args_without_command_name)\n",
              "project_root": null,
              "filename": "commander/runner.rb"
            },
            {
              "pre_context": [
                "    #\n",
                "\n",
                "    def run(*args)\n"
              ],
              "post_context": [
                "    end\n",
                "\n",
                "    #:stopdoc:\n"
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5@global/gems/commander-4.3.5/lib/commander/command.rb",
              "function": "run",
              "lineno": 153,
              "in_app": false,
              "context_line": "      call parse_options_and_call_procs(*args)\n",
              "project_root": null,
              "filename": "commander/command.rb"
            },
            {
              "pre_context": [
                "      meth = @when_called.shift || :call\n",
                "      options = proxy_option_struct\n",
                "      case object\n"
              ],
              "post_context": [
                "      when Class then meth != :call ? object.new.send(meth, args, options) : object.new(args, options)\n",
                "      else object.send(meth, args, options) if object\n",
                "      end\n"
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5@global/gems/commander-4.3.5/lib/commander/command.rb",
              "function": "call",
              "lineno": 178,
              "in_app": false,
              "context_line": "      when Proc then object.call(args, options)\n",
              "project_root": null,
              "filename": "commander/command.rb"
            },
            {
              "pre_context": [
                "      meth = @when_called.shift || :call\n",
                "      options = proxy_option_struct\n",
                "      case object\n"
              ],
              "post_context": [
                "      when Class then meth != :call ? object.new.send(meth, args, options) : object.new(args, options)\n",
                "      else object.send(meth, args, options) if object\n",
                "      end\n"
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5@global/gems/commander-4.3.5/lib/commander/command.rb",
              "function": "call",
              "lineno": 178,
              "in_app": false,
              "context_line": "      when Proc then object.call(args, options)\n",
              "project_root": null,
              "filename": "commander/command.rb"
            },
            {
              "pre_context": [
                "\n",
                "      c.action do |args, options|\n",
                "        if Fastlane::FastlaneFolder.setup?\n"
              ],
              "post_context": [
                "        else\n",
                "          create = agree('Could not find fastlane in current directory. Would you like to set it up? (y/n)'.yellow, true)\n",
                "          Fastlane::Setup.new.run if create\n"
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5@global/gems/fastlane-1.49.0/bin/fastlane",
              "function": "block (2 levels) in run",
              "lineno": 37,
              "in_app": false,
              "context_line": "          Fastlane::CommandLineHandler.handle(args, options)\n",
              "project_root": null,
              "filename": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5@global/gems/fastlane-1.49.0/bin/fastlane"
            },
            {
              "pre_context": [
                "      end\n",
                "\n",
                "      dot_env = Helper.is_test? ? nil : options.env\n"
              ],
              "post_context": [
                "    end\n",
                "\n",
                "    # Helper to convert into the right data type\n"
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5@global/gems/fastlane-1.49.0/lib/fastlane/command_line_handler.rb",
              "function": "handle",
              "lineno": 30,
              "in_app": false,
              "context_line": "      Fastlane::LaneManager.cruise_lane(platform, lane, lane_parameters, dot_env)\n",
              "project_root": null,
              "filename": "fastlane/command_line_handler.rb"
            },
            {
              "pre_context": [
                "      started = Time.now\n",
                "      e = nil\n",
                "      begin\n"
              ],
              "post_context": [
                "      rescue => ex\n",
                "        Helper.log.info 'Variable Dump:'.yellow\n",
                "        Helper.log.info Actions.lane_context\n"
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5@global/gems/fastlane-1.49.0/lib/fastlane/lane_manager.rb",
              "function": "cruise_lane",
              "lineno": 46,
              "in_app": false,
              "context_line": "        ff.runner.execute(lane, platform, parameters)\n",
              "project_root": null,
              "filename": "fastlane/lane_manager.rb"
            },
            {
              "pre_context": [
                "      path_to_use = Fastlane::FastlaneFolder.path || Dir.pwd\n",
                "      parameters ||= {}\n",
                "      begin\n"
              ],
              "post_context": [
                "          # Call the platform specific before_all block and then the general one\n",
                "\n",
                "          before_all_blocks[current_platform].call(current_lane, parameters) if before_all_blocks[current_platform] && current_platform\n"
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5@global/gems/fastlane-1.49.0/lib/fastlane/runner.rb",
              "function": "execute",
              "lineno": 46,
              "in_app": false,
              "context_line": "        Dir.chdir(path_to_use) do # the file is located in the fastlane folder\n",
              "project_root": null,
              "filename": "fastlane/runner.rb"
            },
            {
              "pre_context": [
                "      path_to_use = Fastlane::FastlaneFolder.path || Dir.pwd\n",
                "      parameters ||= {}\n",
                "      begin\n"
              ],
              "post_context": [
                "          # Call the platform specific before_all block and then the general one\n",
                "\n",
                "          before_all_blocks[current_platform].call(current_lane, parameters) if before_all_blocks[current_platform] && current_platform\n"
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5@global/gems/fastlane-1.49.0/lib/fastlane/runner.rb",
              "function": "chdir",
              "lineno": 46,
              "in_app": false,
              "context_line": "        Dir.chdir(path_to_use) do # the file is located in the fastlane folder\n",
              "project_root": null,
              "filename": "fastlane/runner.rb"
            },
            {
              "pre_context": [
                "          before_all_blocks[current_platform].call(current_lane, parameters) if before_all_blocks[current_platform] && current_platform\n",
                "          before_all_blocks[nil].call(current_lane, parameters) if before_all_blocks[nil]\n",
                "\n"
              ],
              "post_context": [
                "\n",
                "          # `after_all` is only called if no exception was raised before\n",
                "          # Call the platform specific before_all block and then the general one\n"
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5@global/gems/fastlane-1.49.0/lib/fastlane/runner.rb",
              "function": "block in execute",
              "lineno": 52,
              "in_app": false,
              "context_line": "          return_val = lane_obj.call(parameters) # by default no parameters\n",
              "project_root": null,
              "filename": "fastlane/runner.rb"
            },
            {
              "pre_context": [
                "\n",
                "    # Execute this lane\n",
                "    def call(parameters)\n"
              ],
              "post_context": [
                "    end\n",
                "\n",
                "    # @return [String] The lane + name of the lane. If there is no platform, it will only be the lane name\n"
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5@global/gems/fastlane-1.49.0/lib/fastlane/lane.rb",
              "function": "call",
              "lineno": 36,
              "in_app": false,
              "context_line": "      block.call(parameters || {})\n",
              "project_root": null,
              "filename": "fastlane/lane.rb"
            },
            {
              "pre_context": [
                "\n",
                "    # Execute this lane\n",
                "    def call(parameters)\n"
              ],
              "post_context": [
                "    end\n",
                "\n",
                "    # @return [String] The lane + name of the lane. If there is no platform, it will only be the lane name\n"
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5@global/gems/fastlane-1.49.0/lib/fastlane/lane.rb",
              "function": "call",
              "lineno": 36,
              "in_app": false,
              "context_line": "      block.call(parameters || {})\n",
              "project_root": null,
              "filename": "fastlane/lane.rb"
            },
            {
              "abs_path": "Fastfile",
              "function": "block (2 levels) in parsing_binding",
              "lineno": 36,
              "in_app": false,
              "project_root": null,
              "filename": "Fastfile"
            },
            {
              "pre_context": [
                "      # confusing\n",
                "      if class_ref && class_ref.respond_to?(:run)\n",
                "        # Action is available, now execute it\n"
              ],
              "post_context": [
                "      else\n",
                "        raise \"Action '#{method_sym}' of class '#{class_name}' was found, but has no `run` method.\".red\n",
                "      end\n"
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5@global/gems/fastlane-1.49.0/lib/fastlane/fast_file.rb",
              "function": "method_missing",
              "lineno": 149,
              "in_app": false,
              "context_line": "        return self.runner.execute_action(method_sym, class_ref, arguments)\n",
              "project_root": null,
              "filename": "fastlane/fast_file.rb"
            },
            {
              "pre_context": [
                "      verify_supported_os(method_sym, class_ref)\n",
                "\n",
                "      begin\n"
              ],
              "post_context": [
                "          Actions.execute_action(class_ref.step_text) do\n",
                "            # arguments is an array by default, containing an hash with the actual parameters\n",
                "            # Since we usually just need the passed hash, we'll just use the first object if there is only one\n"
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5@global/gems/fastlane-1.49.0/lib/fastlane/runner.rb",
              "function": "execute_action",
              "lineno": 127,
              "in_app": false,
              "context_line": "        Dir.chdir(custom_dir) do # go up from the fastlane folder, to the project folder\n",
              "project_root": null,
              "filename": "fastlane/runner.rb"
            },
            {
              "pre_context": [
                "      verify_supported_os(method_sym, class_ref)\n",
                "\n",
                "      begin\n"
              ],
              "post_context": [
                "          Actions.execute_action(class_ref.step_text) do\n",
                "            # arguments is an array by default, containing an hash with the actual parameters\n",
                "            # Since we usually just need the passed hash, we'll just use the first object if there is only one\n"
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5@global/gems/fastlane-1.49.0/lib/fastlane/runner.rb",
              "function": "chdir",
              "lineno": 127,
              "in_app": false,
              "context_line": "        Dir.chdir(custom_dir) do # go up from the fastlane folder, to the project folder\n",
              "project_root": null,
              "filename": "fastlane/runner.rb"
            },
            {
              "pre_context": [
                "\n",
                "      begin\n",
                "        Dir.chdir(custom_dir) do # go up from the fastlane folder, to the project folder\n"
              ],
              "post_context": [
                "            # arguments is an array by default, containing an hash with the actual parameters\n",
                "            # Since we usually just need the passed hash, we'll just use the first object if there is only one\n",
                "            if arguments.count == 0\n"
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5@global/gems/fastlane-1.49.0/lib/fastlane/runner.rb",
              "function": "block in execute_action",
              "lineno": 128,
              "in_app": false,
              "context_line": "          Actions.execute_action(class_ref.step_text) do\n",
              "project_root": null,
              "filename": "fastlane/runner.rb"
            },
            {
              "pre_context": [
                "\n",
                "      begin\n",
                "        Helper.log_alert(\"Step: \" + step_name) if step_name\n"
              ],
              "post_context": [
                "      rescue => ex\n",
                "        exc = ex\n",
                "        error = caller.join(\"\\n\") + \"\\n\\n\" + ex.to_s\n"
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5@global/gems/fastlane-1.49.0/lib/fastlane/actions/actions_helper.rb",
              "function": "execute_action",
              "lineno": 37,
              "in_app": false,
              "context_line": "        yield\n",
              "project_root": null,
              "filename": "fastlane/actions/actions_helper.rb"
            },
            {
              "pre_context": [
                "              raise \"You have to call the integration like `#{method_sym}(key: \\\"value\\\")`. Run `fastlane action #{method_sym}` for all available keys. Please check out the current documentation on GitHub.\".red\n",
                "            end\n",
                "\n"
              ],
              "post_context": [
                "          end\n",
                "        end\n",
                "      rescue => ex\n"
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5@global/gems/fastlane-1.49.0/lib/fastlane/runner.rb",
              "function": "block (2 levels) in execute_action",
              "lineno": 142,
              "in_app": false,
              "context_line": "            class_ref.run(arguments)\n",
              "project_root": null,
              "filename": "fastlane/runner.rb"
            },
            {
              "pre_context": [
                "        Spaceship.select_team\n",
                "\n",
                "        if devices\n"
              ],
              "post_context": [
                "            raise \"Passed invalid UDID: #{v} for device: #{k}\".red unless UDID_REGEXP =~ v\n",
                "            Spaceship::Device.create!(name: k, udid: v)\n",
                "          end\n"
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5@global/gems/fastlane-1.49.0/lib/fastlane/actions/register_devices.rb",
              "function": "run",
              "lineno": 24,
              "in_app": false,
              "context_line": "          device_objs = devices.map do |k, v|\n",
              "project_root": null,
              "filename": "fastlane/actions/register_devices.rb"
            },
            {
              "pre_context": [
                "        Spaceship.select_team\n",
                "\n",
                "        if devices\n"
              ],
              "post_context": [
                "            raise \"Passed invalid UDID: #{v} for device: #{k}\".red unless UDID_REGEXP =~ v\n",
                "            Spaceship::Device.create!(name: k, udid: v)\n",
                "          end\n"
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5@global/gems/fastlane-1.49.0/lib/fastlane/actions/register_devices.rb",
              "function": "map",
              "lineno": 24,
              "in_app": false,
              "context_line": "          device_objs = devices.map do |k, v|\n",
              "project_root": null,
              "filename": "fastlane/actions/register_devices.rb"
            },
            {
              "pre_context": [
                "        Spaceship.select_team\n",
                "\n",
                "        if devices\n"
              ],
              "post_context": [
                "            raise \"Passed invalid UDID: #{v} for device: #{k}\".red unless UDID_REGEXP =~ v\n",
                "            Spaceship::Device.create!(name: k, udid: v)\n",
                "          end\n"
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5@global/gems/fastlane-1.49.0/lib/fastlane/actions/register_devices.rb",
              "function": "each",
              "lineno": 24,
              "in_app": false,
              "context_line": "          device_objs = devices.map do |k, v|\n",
              "project_root": null,
              "filename": "fastlane/actions/register_devices.rb"
            },
            {
              "pre_context": [
                "        if devices\n",
                "          device_objs = devices.map do |k, v|\n",
                "            raise \"Passed invalid UDID: #{v} for device: #{k}\".red unless UDID_REGEXP =~ v\n"
              ],
              "post_context": [
                "          end\n",
                "        elsif devices_file\n",
                "          require 'csv'\n"
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5@global/gems/fastlane-1.49.0/lib/fastlane/actions/register_devices.rb",
              "function": "block in run",
              "lineno": 26,
              "in_app": false,
              "context_line": "            Spaceship::Device.create!(name: k, udid: v)\n",
              "project_root": null,
              "filename": "fastlane/actions/register_devices.rb"
            },
            {
              "pre_context": [
                "\n",
                "          # Find the device by UDID, raise an exception if it already exists\n",
                "          if self.find_by_udid(udid, mac: mac)\n"
              ],
              "post_context": [
                "          end\n",
                "\n",
                "          # It is valid to have the same name for multiple devices\n"
              ],
              "abs_path": "/Users/petrkorolev/.rvm/gems/ruby-2.1.5@global/gems/spaceship-0.19.0/lib/spaceship/portal/device.rb",
              "function": "create!",
              "lineno": 151,
              "in_app": false,
              "context_line": "            raise \"The device UDID '#{udid}' already exists on this team.\"\n",
              "project_root": null,
              "filename": "spaceship/portal/device.rb"
            }
          ]
        }
      }
    ]
  }
}

lane looks like this
 lane :reg do
        register_devices(
            devices: {
                "iphone6 64gb"=>'4a7601a6063d9e2017c3aceece33fc127e9e7333',
            }
        )
    end

I'm seeing this as well on one of my teams. Was there any resolution for you, @skywinder?

@nickoneill just exclude registered devices from the list.. not convenient, but there is no any other solutions yet.

I just pushed a fix, this will be fixed in the next spaceship / fastlane release :+1:

Thanks!

I have fastlane 1.63.1 and I'm still seeing this issue. Crash id 49bcfb9d4f3c36a5b81d327221fb78b7

Sorry, my mistake. It looks like I've encountered a separate issue https://github.com/fastlane/fastlane/issues/1429

authors: KrauseFx brad lmirosevic nickoneill skywinder vpolouchkine

repo: fastlane/fastlane


text:
Required ruby version

I want to run it on Debian 32 bits but I dont see what's the required min ruby version to run this.
I instaled rbenv but put on /opt/rbenv since I want it to be shared between users.
Im trying with ruby #2.4.0 but with no success.
Im trying with http://download.fastlane.tools/ but it looks like it's just for 64 bits.
Getting a security error:
$ ruby fastlane env
ruby: no -x allowed while running setgid (SecurityError)

If I'm not wrong, fastlane depends on Ruby 2.0.0 as its minimum requirement.

@minuscorp and it runs on 32 bit systems?

Yeah! For sure, look for it using apt-get, you'll have to look for the 2.0.0 version tough

authors: caipivara minuscorp


text:
/Library/Ruby/Gems/2.6.0/gems/fastlane-2.210.1/spaceship/lib/spaceship/client.rb:73:in teams': [!] undefined method sort_by' for nil:NilClass (NoMethodError)

Full stacktrace:
bundler: failed to load command: fastlane (/usr/local/bin/fastlane)
/Library/Ruby/Gems/2.6.0/gems/fastlane-2.210.1/spaceship/lib/spaceship/client.rb:73:in `teams': [!] undefined method `sort_by' for nil:NilClass (NoMethodError)
	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.210.1/pilot/lib/pilot/build_manager.rb:412:in `transporter_for_selected_team'
	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.210.1/pilot/lib/pilot/build_manager.rb:49:in `upload'
	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/actions/upload_to_testflight.rb:34:in `run'
	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/runner.rb:229:in `chdir'
	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
	from Fastfile:96:in `block (2 levels) in parsing_binding'
	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/lane.rb:33:in `call'
	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/runner.rb:45:in `chdir'
	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/runner.rb:45:in `execute'
	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/commands_generator.rb:110:in `block (2 levels) in run'
	from /Library/Ruby/Gems/2.6.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
	from /Library/Ruby/Gems/2.6.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
	from /Library/Ruby/Gems/2.6.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.210.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!'
	from /Library/Ruby/Gems/2.6.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/commands_generator.rb:354:in `run'
	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/commands_generator.rb:43:in `start'
	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.210.1/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in `take_off'
	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.210.1/bin/fastlane:23:in `<top (required)>'
	from /usr/local/bin/fastlane:23:in `load'
	from /usr/local/bin/fastlane:23:in `<top (required)>'
	from /Library/Ruby/Gems/2.6.0/gems/bundler-2.3.24/lib/bundler/cli/exec.rb:58:in `load'
	from /Library/Ruby/Gems/2.6.0/gems/bundler-2.3.24/lib/bundler/cli/exec.rb:58:in `kernel_load'
	from /Library/Ruby/Gems/2.6.0/gems/bundler-2.3.24/lib/bundler/cli/exec.rb:23:in `run'
	from /Library/Ruby/Gems/2.6.0/gems/bundler-2.3.24/lib/bundler/cli.rb:486:in `exec'
	from /Library/Ruby/Gems/2.6.0/gems/bundler-2.3.24/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
	from /Library/Ruby/Gems/2.6.0/gems/bundler-2.3.24/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
	from /Library/Ruby/Gems/2.6.0/gems/bundler-2.3.24/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
	from /Library/Ruby/Gems/2.6.0/gems/bundler-2.3.24/lib/bundler/cli.rb:31:in `dispatch'
	from /Library/Ruby/Gems/2.6.0/gems/bundler-2.3.24/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
	from /Library/Ruby/Gems/2.6.0/gems/bundler-2.3.24/lib/bundler/cli.rb:25:in `start'
	from /Library/Ruby/Gems/2.6.0/gems/bundler-2.3.24/exe/bundle:48:in `block in <top (required)>'
	from /Library/Ruby/Gems/2.6.0/gems/bundler-2.3.24/lib/bundler/friendly_errors.rb:120:in `with_friendly_errors'
	from /Library/Ruby/Gems/2.6.0/gems/bundler-2.3.24/exe/bundle:36:in `<top (required)>'
	from /usr/local/bin/bundle:23:in `load'
	from /usr/local/bin/bundle:23:in `<main>'

I was trying to upload 6 apps. 3 succeeded. On the 4th it failed with the above exception. Re-running the exact same script did work again.

🚫 fastlane environment 🚫
Stack

Key
Value

OS
12.5.1

Ruby
2.6.8

Bundler?
true

Git
git version 2.37.1 (Apple Git-137.1)

Installation Source
/usr/local/bin/fastlane

Host
macOS 12.5.1 (21G83)

Ruby Lib Dir
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib

OpenSSL Version
LibreSSL 2.8.3

Is contained
false

Is homebrew
false

Is installed via Fabric.app
false

Xcode Path
/Applications/Xcode.app/Contents/Developer/

Xcode Version
14.1

Swift Version
5.7.1

System Locale

Error

No Locale with UTF8 found 🚫

No Appfile found
fastlane gems

Gem
Version
Update-Status

fastlane
2.210.1
✅ Up-To-Date

Loaded fastlane plugins:
No plugins Loaded
Loaded gems

Gem
Version

did_you_mean
1.3.0

bundler
2.3.24

rake
13.0.6

rexml
3.2.5

CFPropertyList
3.0.5

public_suffix
5.0.0

addressable
2.8.1

artifactory
3.0.15

atomos
0.1.3

aws-eventstream
1.2.0

aws-partitions
1.657.0

aws-sigv4
1.5.2

jmespath
1.6.1

aws-sdk-core
3.166.0

aws-sdk-kms
1.59.0

aws-sdk-s3
1.117.1

babosa
1.0.4

claide
1.1.0

colored
1.2

colored2
3.1.2

highline
2.0.3

commander
4.6.0

declarative
0.0.20

digest-crc
0.6.4

unf_ext
0.0.8.2

unf
0.1.4

domain_name
0.5.20190701

dotenv
2.8.1

emoji_regex
3.2.3

excon
0.93.1

faraday-em_http
1.0.0

faraday-em_synchrony
1.0.0

faraday-excon
1.1.0

faraday-httpclient
1.0.1

multipart-post
2.0.0

faraday-multipart
1.0.4

faraday-net_http
1.0.1

faraday-net_http_persistent
1.2.0

faraday-patron
1.0.0

faraday-rack
1.0.0

faraday-retry
1.0.3

ruby2_keywords
0.0.5

faraday
1.10.2

http-cookie
1.0.5

faraday-cookie_jar
0.0.7

faraday_middleware
1.2.0

fastimage
2.2.6

gh_inspector
1.1.3

jwt
2.5.0

memoist
0.16.2

multi_json
1.15.0

os
1.1.4

signet
0.17.0

googleauth
1.3.0

httpclient
2.8.3

mini_mime
1.1.2

trailblazer-option
0.1.2

uber
0.1.0

representable
3.2.0

retriable
3.1.2

webrick
1.7.0

google-apis-core
0.9.1

google-apis-androidpublisher_v3
0.31.0

google-apis-playcustomapp_v1
0.12.0

google-apis-iamcredentials_v1
0.16.0

google-apis-storage_v1
0.19.0

google-cloud-env
1.6.0

google-cloud-errors
1.3.0

google-cloud-core
1.6.0

google-cloud-storage
1.44.0

json
2.6.2

mini_magick
4.11.0

naturally
2.2.1

optparse
0.1.1

plist
3.6.0

rubyzip
2.3.2

security
0.1.3

simctl
1.6.8

terminal-notifier
2.0.0

unicode-display_width
1.8.0

terminal-table
1.8.0

tty-screen
0.8.1

tty-cursor
0.7.1

tty-spinner
0.9.3

word_wrap
1.0.0

nanaimo
0.3.0

xcodeproj
1.22.0

rouge
2.0.7

xcpretty
0.3.0

xcpretty-travis-formatter
1.0.1

generated on: 2022-11-09

Closing, as I haven't had this problem in a while.

Just happened to me! The script got stuck for a while when logging to App Store Connect, threw that error and didn't complete the login. Running the script second time resolved the issue.

Yesterday this happened to me again.

Running the script second time resolved the issue.

Did the trick for me as well. I'm wondering though, is this something fastlane can handle on its own?

authors: juanektbb vanniktech


text:
[question] How to keep push notification certificates in shared git repo with match?

Thank you for great tools!
How to keep push notification certificates in shared git repo with match?

✅ fastlane environment ✅
Stack

Key
Value

OS
10.12.4

Ruby
2.2.4

Bundler?
false

Git
git version 2.11.0 (Apple Git-81)

Installation Source
~/.fastlane/bin/bundle/bin/fastlane

Host
Mac OS X 10.12.4 (16E195)

Ruby Lib Dir
~/.fastlane/bin/bundle/lib

OpenSSL Version
OpenSSL 1.0.2g  1 Mar 2016

Is contained
true

Is homebrew
false

Is installed via Fabric.app
false

Xcode Path
/Applications/Xcode.app/Contents/Developer/

Xcode Version
8.3

System Locale

Variable
Value

LANG
en_US.UTF-8
✅

LC_ALL
en_US.UTF-8
✅

LANGUAGE
en_US.UTF-8
✅

fastlane files:
`./fastlane/Fastfile`
# Customise this file, documentation can be found here:
# https://github.com/fastlane/fastlane/tree/master/fastlane/docs
# All available actions: https://docs.fastlane.tools/actions
# can also be listed using the `fastlane actions` command

# Change the syntax highlighting to Ruby
# All lines starting with a # are ignored when running `fastlane`

# If you want to automatically update fastlane if a new version is available:
# update_fastlane

# This is the minimum version number required.
# Update this, if you use features of a newer version
fastlane_version "2.26.0"

# NOTE: If building on Teamcity and you see this error "security: cert import failed:" then update the LaunchDaemon
# plist file according to this page: http://stackoverflow.com/a/9482707/1074558

# username "appliedtechrequest@baystatehealth.org" # Your Apple Developer Portal username

default_platform :ios

app_name = "BHAppStore"
git_url = "git@bitbucket.org:okonon/bhcerts.git"

team_id = CredentialsManager::AppfileConfig.try_fetch_value(:team_id)
app_identifier = CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier)

cert_path = "certs"
keychain_path = "~/Library/Keychains/login.keychain-db"

platform :ios do

  lane :profiles_development do
    # sh("mkdir -p #{cert_path}/development")
    cert(
      # keychain_path: "#{keychain_path}",
      # keychain_password: ENV['KC_PW'],
      development: true
      # output_path: "#{cert_path}/development"
    )
    sigh(
      development: true
      # output_path: "#{cert_path}/development"
    )
  end

  # lane :profiles_release do
  #   sh("mkdir -p #{cert_path}/release")
  #   cert(
  #     keychain_path: "#{keychain_path}",
  #     keychain_password: ENV['KC_PW'],
  #     development: false,
  #     output_path: "#{cert_path}/release"
  #   )
  #   sigh(
  #     development: false,
  #     output_path: "#{cert_path}/release"
  #   )
  # end

  lane :build_development do
    if is_ci?
      unlock_keychain(
        path: "#{keychain_path}",
        password: ENV['KC_PW']
      )
    end
    profiles_development
    gym(
      clean: true,
      configuration: "Debug",
      output_directory: "builds/" + Time.now.strftime('%F'),
      output_name: "#{app_name}-development.ipa",
      project: "platforms/ios/#{app_name}.xcodeproj",
      scheme: "#{app_name}",
      toolchain: "swift_2_3"
    )
  end

  # lane :build_release do
  #   if is_ci?
  #     unlock_keychain(
  #       path: "#{keychain_path}",
  #       password: ENV['KC_PW']
  #     )
  #   end
  #   profiles_release
  #   gym(
  #     clean: true,
  #     configuration: "Release",
  #     output_directory: "builds/" + Time.now.strftime('%F'),
  #     output_name: "#{app_name}-release.ipa",
  #     project: "platforms/ios/#{app_name}.xcodeproj",
  #     scheme: "#{app_name}",
  #     toolchain: "swift_2_3"
  #   )
  # end

  # lane :beta do
  #   build_release
  #   ENV["DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS"] = "-t DAV"
  #   pilot
  # end

  # lane :release_app do
  #   deliver(
  #     ipa: "builds/#{Time.now.strftime('%F')}/#{app_name}-release.ipa",
  #     force: true,
  #     skip_metadata: true,
  #     skip_screenshots: true
  #   )
  # end
end

platform :android do

  lane :build_development do
    Dir.chdir ".." do
      sh("platforms/android/cordova/clean")
    end
    gradle(
      task: "cdvBuildDebug",
      project_dir: "platforms/android/",
      properties: {
        'android.useDeprecatedNdk' => true
      }
    )
    Dir.chdir ".." do
      sh("mkdir -p builds/#{Time.now.strftime('%F')}/")
      sh("cp -f platforms/android/build/outputs/apk/android-armv7-debug.apk builds/#{Time.now.strftime('%F')}/")
      sh("cp -f platforms/android/build/outputs/apk/android-x86-debug.apk builds/#{Time.now.strftime('%F')}/")
    end
  end

  # lane :build_release do
  #   Dir.chdir ".." do
  #     sh("platforms/android/cordova/clean")
  #   end
  #   gradle(
  #     task: "cdvBuildRelease",
  #     project_dir: "platforms/android/",
  #     properties: {
  #       'android.useDeprecatedNdk' => true
  #     }
  #   )
  #   Dir.chdir ".." do
  #     sh("mkdir -p builds/#{Time.now.strftime('%F')}/")
  #     sh("cp -f platforms/android/build/outputs/apk/android-armv7-release.apk builds/#{Time.now.strftime('%F')}/")
  #     sh("cp -f platforms/android/build/outputs/apk/android-x86-release.apk builds/#{Time.now.strftime('%F')}/")
  #   end
  # end

  # lane :release_app do |options|
  #   supply(
  #     track: options[:track],
  #     apk_paths: ["builds/#{Time.now.strftime('%F')}/android-x86-release.apk", "builds/#{Time.now.strftime('%F')}/android-armv7-release.apk"],
  #     skip_upload_metadata: true,
  #     skip_upload_images: true,
  #     skip_upload_screenshots: true
  #   )
  # end
end

`./fastlane/Appfile`
app_identifier "org.baystatehealth.appstore" # The bundle identifier of your app
apple_id "appliedtechrequest@baystatehealth.org" # Your Apple email address

team_id "HJMX52WAVE"  # Developer Portal Team ID

# you can even provide different app identifiers, Apple IDs and team names per lane:
# More information: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Appfile.md

fastlane gems

Gem
Version
Update-Status

fastlane
2.26.0
✅ Up-To-Date

Loaded fastlane plugins:
No plugins Loaded
Loaded gems

Gem
Version

CFPropertyList
2.3.5

activesupport
4.2.7.1

addressable
2.5.0

babosa
1.0.2

bigdecimal
1.2.6

bundler
1.14.3

claide
1.0.1

colored
1.2

commander
4.4.3

commander-fastlane
4.4.4

domain_name
0.5.20161129

dotenv
2.2.0

excon
0.54.0

faraday
0.11.0

faraday-cookie_jar
0.0.6

faraday_middleware
0.11.0.1

fastimage
2.0.1

gh_inspector
1.0.3

google-api-client
0.9.26

googleauth
0.5.1

highline
1.7.8

http-cookie
1.0.3

httpclient
2.8.3

hurley
0.2

i18n
0.7.0

io-console
0.4.3

json
1.8.1

jwt
1.5.6

libxml-ruby
2.9.0

little-plugger
1.1.4

logging
2.1.0

memoist
0.15.0

mime-types
3.1

mime-types-data
3.2016.0521

mini_magick
4.5.1

minitest
5.4.3

multi_json
1.12.1

multi_xml
0.6.0

multipart-post
2.0.0

nanaimo
0.2.3

nokogiri
1.5.6

os
0.9.6

plist
3.2.0

power_assert
0.2.2

psych
2.0.8

public_suffix
2.0.5

rake
10.4.2

rdoc
4.2.0

representable
2.3.0

retriable
2.1.0

rouge
1.11.1

rubygems-update
2.5.2

rubyzip
1.2.0

security
0.1.3

signet
0.7.3

slack-notifier
1.5.1

sqlite3
1.3.13

terminal-notifier
1.7.1

terminal-table
1.7.3

test-unit
3.0.8

thread_safe
0.3.5

tty-screen
0.5.0

tzinfo
1.2.2

uber
0.0.15

unf
0.1.4

unf_ext
0.0.7.2

unicode-display_width
1.1.3

word_wrap
1.0.0

xcodeproj
1.4.2

xcpretty
0.2.4

xcpretty-travis-formatter
0.0.4

generated on: 2017-04-07

hey @okonon 🤚
match is only for certificates and provisiong profiles. right now there is no out of the box solution for PEM's.
you may have a look at https://github.com/hjanuschka/fastlane-plugin-cryptex - this is a match fork - supporting any files.

@hjanuschka  thanks for your response.  So how would one manage their push notification certificates - use pem?

Hello, Match command fails to push the certificates on Repo, As repo requires JIRA ID in commit message but Match using default commit message. Whats the solution for this @hjanuschka

@rahulssoni the commit message is fixed inside the source code: https://github.com/fastlane/fastlane/blob/master/match/lib/match/git_helper.rb#L68
i guess the best solution would be to disable the jira-id requirement on the certificate repo (if that is possible; not a jira user :/).

hjanuschka - Thanks for your quick reply.

@okonon did you find a way to push this certificate with match ?

@jdrouet Can you let us know what you are looking to do with match? Or are you trying to use the cryptex plugin that @hjanuschka mentioned above?
Thanks!

@jdrouet i do not think match supports push certificates at the moment. I am using Pem And Cryptex plugin.
@mpirri it would be nice if match supported push sertificates. Because nowadays majority of apps utilize push notifications

Correct, as @hjanuschka above said, match is currently not for PEMs. We don't currently have any plans to add support for push certs to match, but will keep it in mind for a future release of fastlane.  Thanks for the request and I'm sorry I don't have better news for you!  🚀

@mpirri I am wondering if you could survey your users to see if supporting PEMs feature adds any value to them?

@okonon Sure! We can leave this issue open and any folks who are interested can weight in on it. Again, no promises that we will be able to build it any time soon, but another option is to have a fastlane contributor take the lead on this functionality - we are always enthusiastic to review awesome PRs that add useful functionality to the tools.
Thanks again!  🚀

@mpirri @okonon That would definitely be awesome, many applications use push notifications, and match makes the task much easier for other certificates. Combining these two features would be perfect ! 🔥

I agree with @xavier-villelegier - it would be really great to have this feature

Hey everyone, great news! It looks like someone is working on this already. You can follow the PR here! https://github.com/fastlane/fastlane/pull/9752

w00t ! nice!
i will wait for official release and documentation! thanks @ohayon for the info

@ohayon is that for importing Signing certificates and for APNS certificates?

The PR linked above is just for existing private keys for code signing, not for push from my understanding.

Ok. Let's see if this issue gets more popularity.  I wonder why people do not want to request this feature to maintain push to the defecation certificates the match way

Anyways I've implemented a workaround using the https://github.com/hjanuschka/fastlane-plugin-cryptex

Oh that's great, yeah @hjanuschka's plugin is awesome, that's a great workaround for this :)

Thanks. I am really surprised that no one requested this feature before. I think majority of apps use push notifications nowadays. Thai would be a killer feature. Well let's see if people notice this thread d
Thanks

Yeah, most users will just upload the push certificate directly to their server I think

authors: KrauseFx hjanuschka jdrouet mpirri ohayon okonon rahulssoni xavier-villelegier


text:
Produce Apple 302 Detected

New Issue Checklist

[✅ ] Updated fastlane to the latest version
[✅ ] I have read the Contribution Guidelines

Issue Description
Tried using fastlane produce for a new app. It looks like Apple has moved whatever page SpaceShip is trying to access. I traced back the page to being somewhere on the Developer Center from portal_client.rb:29:
req = request(:post, "account/listTeams.action")
Complete output when running fastlane, including the stack trace and command used

You can use: --capture_output as the last commandline argument to get that collected for you

[!] The request could not be completed because: (Spaceship::Client::AppleTimeoutError)
Apple 302 detected
from /Users/jeffreygreen/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.36.0/spaceship/lib/spaceship/client.rb:516:in with_retry' 	from /Users/jeffreygreen/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.36.0/spaceship/lib/spaceship/client.rb:671:in send_request'
from /Users/jeffreygreen/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.36.0/spaceship/lib/spaceship/client.rb:560:in request' 	from /Users/jeffreygreen/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.36.0/spaceship/lib/spaceship/portal/portal_client.rb:29:in teams'
from /Users/jeffreygreen/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.36.0/spaceship/lib/spaceship/portal/ui/select_team.rb:49:in select_team' 	from /Users/jeffreygreen/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.36.0/spaceship/lib/spaceship/portal/portal_client.rb:55:in select_team'
from /Users/jeffreygreen/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.36.0/spaceship/lib/spaceship/portal/spaceship.rb:37:in select_team' 	from /Users/jeffreygreen/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.36.0/spaceship/lib/spaceship/portal/spaceship.rb:86:in select_team'
from /Users/jeffreygreen/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.36.0/produce/lib/produce/developer_center.rb:122:in login' 	from /Users/jeffreygreen/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.36.0/produce/lib/produce/developer_center.rb:36:in run'
from /Users/jeffreygreen/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.36.0/produce/lib/produce/manager.rb:7:in start_producing' 	from /Users/jeffreygreen/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.36.0/produce/lib/produce/commands_generator.rb:34:in block (2 levels) in run'
from /Users/jeffreygreen/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.4/lib/commander/command.rb:178:in call' 	from /Users/jeffreygreen/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.4/lib/commander/command.rb:178:in call'
from /Users/jeffreygreen/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.4/lib/commander/command.rb:153:in run' 	from /Users/jeffreygreen/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.4/lib/commander/runner.rb:476:in run_active_command'
from /Users/jeffreygreen/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.36.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:39:in run!' 	from /Users/jeffreygreen/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.4/lib/commander/delegates.rb:15:in run!'
from /Users/jeffreygreen/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.36.0/produce/lib/produce/commands_generator.rb:140:in run' 	from /Users/jeffreygreen/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.36.0/produce/lib/produce/commands_generator.rb:11:in start'
from /Users/jeffreygreen/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.36.0/fastlane/lib/fastlane/cli_tools_distributor.rb:58:in take_off' 	from /Users/jeffreygreen/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.36.0/bin/fastlane:20:in <top (required)>'
from /Users/jeffreygreen/.fastlane/bin/bundle/bin/fastlane:22:in load' 	from /Users/jeffreygreen/.fastlane/bin/bundle/bin/fastlane:22:in '
Environment
Please run fastlane env and copy the output below. This will help us help you :+1:
If you used --capture_output option please remove this block - as it is already included there.
✅ fastlane environment ✅
Stack

Key
Value

OS
10.12.5

Ruby
2.2.4

Bundler?
false

Git
git version 2.11.0 (Apple Git-81)

Installation Source
~/.fastlane/bin/bundle/bin/fastlane

Host
Mac OS X 10.12.5 (16F73)

Ruby Lib Dir
~/.fastlane/bin/bundle/lib

OpenSSL Version
OpenSSL 1.0.2g  1 Mar 2016

Is contained
false

Is homebrew
true

Is installed via Fabric.app
false

Xcode Path
/Applications/Xcode.app/Contents/Developer/

Xcode Version
8.3.2

System Locale

Variable
Value

LANG
en_US.UTF-8
✅

LC_ALL
en_US.UTF-8
✅

LANGUAGE
en_US.UTF-8
✅

fastlane files:
No Fastfile found
No Appfile found
fastlane gems

Gem
Version
Update-Status

fastlane
2.36.0
✅ Up-To-Date

Loaded fastlane plugins:
No plugins Loaded
Loaded gems

Gem
Version

slack-notifier
1.5.1

CFPropertyList
2.3.5

claide
1.0.1

colored2
3.1.2

nanaimo
0.2.3

xcodeproj
1.4.4

rouge
1.11.1

xcpretty
0.2.6

terminal-notifier
1.7.1

unicode-display_width
1.1.3

terminal-table
1.7.3

plist
3.2.0

public_suffix
2.0.5

addressable
2.5.1

multipart-post
2.0.0

word_wrap
1.0.0

tty-screen
0.5.0

babosa
1.0.2

colored
1.2

highline
1.7.8

commander-fastlane
4.4.4

excon
0.55.0

faraday
0.12.1

unf_ext
0.0.7.4

unf
0.1.4

domain_name
0.5.20170404

http-cookie
1.0.3

faraday-cookie_jar
0.0.6

fastimage
2.1.0

gh_inspector
1.0.3

uber
0.0.15

representable
2.3.0

retriable
2.1.0

mime-types-data
3.2016.0521

mime-types
3.1

hurley
0.2

little-plugger
1.1.4

multi_json
1.12.1

logging
2.2.2

jwt
1.5.6

memoist
0.15.0

os
0.9.6

signet
0.7.3

googleauth
0.5.1

httpclient
2.8.3

google-api-client
0.9.28

json
1.8.1

mini_magick
4.5.1

multi_xml
0.6.0

rubyzip
1.2.1

security
0.1.3

xcpretty-travis-formatter
0.0.4

dotenv
2.2.0

bundler
1.14.6

faraday_middleware
0.11.0.1

generated on: 2017-06-05

Can you try running this again? During the WWDC keynote (and slightly afterwards), they had a redirect set up to send you to their maintenance page (which was recently removed). I was experiencing this issue as well but have since been able to create apps without running into this problem.

I have run again and it seems that it may be working. I included the team id with the -k flag, so I'm not sure which seemed to fix the issue.

Hey everyone, if you find this via Google: This error means that Apple's web services are unavailable. If you're using match, you can use the readonly flag to not try to access the Apple back-end

authors: JeffreyGreenII KrauseFx nolanwilson


text:
Fix deliver(overwrite_screenshots: true) failing with iMessage screenshots

This is not covered in the tests, if you don't mind pointing at how/where I should best do that, I would be happy to include that in this PR as well!
Checklist

[ ] I've run bundle exec rspec from the root directory to see all new and existing tests pass
[ ] I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
[x] I've read the Contribution Guidelines
[x] I've updated the documentation if necessary.

Motivation and Context
We were hitting the same error as #10032. After some debugging, it seems like when #6981 was done (in #7165/#7162), it always passed false for the is_messages parameter of the upload_screenshot method (https://github.com/fastlane/fastlane/pull/7162/files#diff-1d448c7e200ec0facd4ffd5c23cd3fdeR21)

🛬

authors: JaviSoto taquitos


text:
Add joshdholtz to RubyGems owners

@joshdholtz

Windows build still running, feel free to merge once build is green :+1:


text:
Add new install instructions to README.md

This is not ready to be merged until brew cask merges our PR

Does this look any nicer? The html table formatting lets you set the widths of the columns

[Homebrew](http://brew.sh)
Manual
Rubygems

macOS
macOS
macOS or Linux with Ruby 2.0.0 or above

brew cask install fastlane
Download the zip file). Then double click on the install script (or run it in a terminal window).
sudo gem install fastlane -NV

Yes, it does! Thanks @asfalcone !

https://github.com/caskroom/homebrew-cask/pull/26868

authors: asfalcone ohwutup


text:
fix: all relevant fields to be pointers

Problem
The mapstructure dependency will take a null from the API response and coerce it into the zero value for the associated field type. This has resulted in errors in the Fastly Terraform provider where certain fields return from the API as null but are coerced by go-fastly into a zero value such as 0 and then stored in Terraform state as 0, which is incorrect behaviour (e.g. keepalive_time should be stored in Terraform as null not 0).
Solution
We already use pointers for Create/Update methods, we should extend this so that the entire code base consistently uses pointers (for both input and output structs alike).
Exceptions to this rule are newer APIs like those for the 'stores' (Config, KV, Secret) and any API that implements JSONAPI as I'm not confident in how pointers will be handled by the JSONAPI package (also TLS uses it and so it feels extra risky).
Notes
I've discovered via the test suite a bunch of cases where null was being coerced into a type's zero value (e.g. empty string and zero mostly) and so I've updated the tests for those assertions to check for nil now as that's what we're expecting.
As discussed in a separate breaking PR (generic pagination), we've decided to no longer sort the APIs response data. So you'll see a bunch of struct types (across most files) that implemented the sort interface are now removed.

Successfully integrated this version of go-fastly with an earlier generic pagination script I was using...
package main

import (
	"fmt"
	"log"
	"os"
	"sort"

	"github.com/fastly/go-fastly/v8/fastly" // uses `replace` directive in go.mod locally
)

const (
	serviceID = "<REDACTED>"
	aclID     = "<REDACTED>"
	dictID    = "<REDACTED>"
)

func main() {
	client, err := fastly.NewClient(os.Getenv("FASTLY_API_KEY"))
	if err != nil {
		log.Fatal(err)
	}

	getServicesInput := &fastly.GetServicesInput{
		Direction: fastly.ToPointer("ascend"),
		PerPage:   fastly.ToPointer(50),
		Sort:      fastly.ToPointer("type"),
	}
	p := client.GetServices(getServicesInput)

	var results []*fastly.Service
	for p.HasNext() {
		data, err := p.GetNext()
		if err != nil {
			fmt.Printf("failed to get next page (remaining: %d): %s", p.Remaining(), err)
			return
		}
		results = append(results, data...)
	}

	fmt.Printf("%#v\n", len(results))
	for _, service := range results {
		fmt.Printf("%#v (%s)\n", *service.Name, *service.Type)
	}

	sort.Stable(servicesByName(results))
	fmt.Printf("\nSorted:\n\n")
	for _, service := range results {
		fmt.Printf("%#v (%s)\n", *service.Name, *service.Type)
	}

	fmt.Printf("\nUsing ListServices:\n\n")
	listServiceResults, err := client.ListServices(&fastly.ListServicesInput{
		Direction: fastly.ToPointer("ascend"),
		Sort:      fastly.ToPointer("type"),
	})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("(%d) %#v\n", len(listServiceResults), listServiceResults)

	fmt.Println("---------------------------------------------------------------")

	getACLEntriesInput := &fastly.GetACLEntriesInput{
		ACLID:     aclID,
		Direction: fastly.ToPointer("ascend"),
		PerPage:   fastly.ToPointer(50),
		ServiceID: serviceID,
		Sort:      fastly.ToPointer("ip"),
	}
	p2 := client.GetACLEntries(getACLEntriesInput)

	var results2 []*fastly.ACLEntry
	for p2.HasNext() {
		data, err := p2.GetNext()
		if err != nil {
			fmt.Printf("failed to get next page (remaining: %d): %s", p2.Remaining(), err)
			return
		}
		results2 = append(results2, data...)
	}

	fmt.Printf("%#v\n", len(results2))
	for _, aclEntry := range results2 {
		fmt.Printf("%s | %s\n", *aclEntry.IP, *aclEntry.ID)
	}

	sort.Stable(entriesByID(results2))
	fmt.Printf("\nSorted:\n\n")
	for _, aclEntry := range results2 {
		fmt.Printf("%s | %s\n", *aclEntry.IP, *aclEntry.ID)
	}

	fmt.Printf("\nUsing ListACLEntries:\n\n")
	listACLResults, err := client.ListACLEntries(&fastly.ListACLEntriesInput{
		ACLID:     aclID,
		Direction: fastly.ToPointer("ascend"),
		ServiceID: serviceID,
		Sort:      fastly.ToPointer("ip"),
	})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("(%d) %#v\n", len(listACLResults), listACLResults)

	fmt.Println("---------------------------------------------------------------")

	getDictionaryItemsInput := &fastly.GetDictionaryItemsInput{
		DictionaryID: dictID,
		Direction:    fastly.ToPointer("ascend"),
		PerPage:      fastly.ToPointer(50),
		ServiceID:    serviceID,
		Sort:         fastly.ToPointer("item_value"),
	}
	p3 := client.GetDictionaryItems(getDictionaryItemsInput)

	var results3 []*fastly.DictionaryItem
	for p3.HasNext() {
		data, err := p3.GetNext()
		if err != nil {
			fmt.Printf("failed to get next page (remaining: %d): %s", p3.Remaining(), err)
			return
		}
		results3 = append(results3, data...)
	}

	fmt.Printf("%#v\n", len(results3))
	for _, dictItem := range results3 {
		fmt.Printf("%s | %s\n", *dictItem.ItemKey, *dictItem.ItemValue)
	}

	sort.Stable(dictionaryItemsByKey(results3))
	fmt.Printf("\nSorted:\n\n")
	for _, dictItem := range results3 {
		fmt.Printf("%s | %s\n", *dictItem.ItemKey, *dictItem.ItemValue)
	}

	fmt.Printf("\nUsing ListDictionaryItems:\n\n")
	listDictResults, err := client.ListDictionaryItems(&fastly.ListDictionaryItemsInput{
		DictionaryID: dictID,
		Direction:    fastly.ToPointer("ascend"),
		ServiceID:    serviceID,
		Sort:         fastly.ToPointer("item_value"),
	})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("(%d) %#v\n", len(listDictResults), listDictResults)

	fmt.Println("---------------------------------------------------------------")
}

// servicesByName is a list of services that are sortable by their name.
type servicesByName []*fastly.Service

// Len implement the sortable interface.
func (s servicesByName) Len() int {
	return len(s)
}

// Swap implement the sortable interface.
func (s servicesByName) Swap(i, j int) {
	s[i], s[j] = s[j], s[i]
}

// Less implement the sortable interface.
func (s servicesByName) Less(i, j int) bool {
	return *s[i].Name < *s[j].Name
}

// entriesByID is a list of ACL entries that are sortable by their ID.
type entriesByID []*fastly.ACLEntry

// Len implements the sortable interface.
func (s entriesByID) Len() int {
	return len(s)
}

// Swap implements the sortable interface.
func (s entriesByID) Swap(i, j int) {
	s[i], s[j] = s[j], s[i]
}

// Less implements the sortable interface.
func (s entriesByID) Less(i, j int) bool {
	return *s[i].ID < *s[j].ID
}

// dictionaryItemsByKey is a list of Dictionary items that are sortable by their key.
type dictionaryItemsByKey []*fastly.DictionaryItem

// Len implement the sortable interface.
func (s dictionaryItemsByKey) Len() int {
	return len(s)
}

// Swap implement the sortable interface.
func (s dictionaryItemsByKey) Swap(i, j int) {
	s[i], s[j] = s[j], s[i]
}

// Less implement the sortable interface.
func (s dictionaryItemsByKey) Less(i, j int) bool {
	return *s[i].ItemKey < *s[j].ItemKey
}

I've successfully integrated these changes into the Fastly Terraform provider.

repo: fastly/go-fastly


text:
Wrong Icon?

I think my icon is no longer the red arrow, but is appearing as Graardor? Lol. Asked the person if it could be something else like leagues/being on a specialty world symbol but they couldn't see it and thought I was crazy.
Assuming they hopped worlds, it appeared, then chatted when they settled in a world. Has been happening most of the day and when I notice it the people are usually logged out.

Haha, yeah, it is a bit of an odd bug, and I'm not sure how to fix it; a few other plugins do it, too, sometimes with icons.
In the code, when you pick an icon, as far as I know, there is no way to get it by name, so you can't go like load offline_icon_.png; you have to do Load icon number 50 of 100 icons. Sometimes, a plugin's count of which number their icon is gets off and loads a different one. Always a bit funny when it comes up.

Haha, yeah, it is a bit of an odd bug, and I'm not sure how to fix it; a few other plugins do it, too, sometimes with icons.
In the code, when you pick an icon, as far as I know, there is no way to get it by name, so you can't go like load offline_icon_.png; you have to do Load icon number 50 of 100 icons. Sometimes, a plugin's count of which number their icon is gets off and loads a different one. Always a bit funny when it comes up.

Haha gotcha. Was a fun surprise for sure, but back to normal now. Thanks for checking in.


text:
License Issue

As I was reading about what is required to include your plugins in the official release I noticed that in order to comply with the LGPL v3 license I have to open-source the entire application and everything that uses those plugins.
Can you please consider changing the license to MIT or BSD or Apache 2.0 so I will be able to distribute the plugins with the official release?
Thank you

As a result of this understanding I will change the API license to Apache 2.0 so plugins won't be forced to use the same license

As far as I understand, LGPL is also suitable (not sure though)

It's ok for me to provide a permissive license than copyleft. I'll probably use Apache 2.0, but first need to look ones more terms and conditions.

In the meantime, until we figure this out, I will release 2.7 without the new plugins.
I'd like to discuss this further with you on WhatsApp or email to explore other options

fixed with commit e41c108efd4ea26949927d86081456e13f4d0631

authors: AlonAm fatihboy

repo: fatihboy/AnyStatusElasticsearch


text:
pycurl.error: (4, '') when trying to run

I've installed everything that I needed and when I try to boot it:
root@kontakt2:~/pogom# python runserver.py -u polishtest -p polishtest -l 54.337383, 18.619389 -r 3
File "runserver.py", line 9, in
from pogom.app import Pogom
File "/root/pogom/pogom/app.py", line 13, in
from .search import set_cover
File "/root/pogom/pogom/search.py", line 20, in
api = PGoApi()
File "/root/pogom/pogom/pgoapi/pgoapi.py", line 48, in init
self._rpc = RpcApi()
File "/root/pogom/pogom/pgoapi/rpc_api.py", line 58, in init
pycurl.CONNECTTIMEOUT: 10000, pycurl.CAINFO: certifi.where()}, 8)
File "/root/pogom/pogom/pgoapi/parallel_curl.py", line 62, in init
c.setopt(key, value)
pycurl.error: (4, '')
My config:
root@kontakt2:~/pogom/pogom# vi init.py
#!/usr/bin/python
-- coding: utf-8 --
config = {
'LOCALE': 'en',
'LOCALES_DIR': 'static/locales',
'ROOT_PATH': None,
'GOOGLEMAPS_KEY': 'AIzaSyAGbvwXvHa6voPmM6JqJ8duBZxxxxxxxxx'
}

We just released a hotfix for a similiar issue a few minutes ago? Are you running the most current version?

dupe of #21

I checked the closed issues, didn't see that one - thanks :)

authors: Shentang favll nborrmann

repo: favll/pogom

license: mit

license_source: bigquery


text:
CustomTextComponent issues

I am trying to render some Markdown formatted text in a ReadMore. For this to work, I have to send the Markdown component to ReadMore in the customTextComponent prop.
When I do the following, it produces an error: undefined is not an object (evaluating 'node.children.map')
This seems to be an error from within the Markdown component.
import { View } from 'react-native';
import Markdown from 'react-native-markdown-display';
import ReadMore from '@fawazahmed/react-native-read-more';
import { TranslatedQuestion } from '../../../../types';
import { styles } from '../../styles';

const NUMBER_OF_LINES = 10;

export function QuestionView({ translation }: { translation: TranslatedQuestion }) {
  return (
    <View style={styles.innerContainer}>
      <ReadMore numberOfLines={NUMBER_OF_LINES} style={styles.text} customTextComponent={Markdown}/>
    </View>
  );
}

The same thing happens if I provide a simple functional component wrapping the Markdown component, as follows:
import { View } from 'react-native';
import Markdown from 'react-native-markdown-display';
import ReadMore from '@fawazahmed/react-native-read-more';
import { TranslatedQuestion } from '../../../../types';
import { styles } from '../../styles';

const NUMBER_OF_LINES = 10;

export function QuestionView({ translation }: { translation: TranslatedQuestion }) {
  return (
    <View style={styles.innerContainer}>
      <ReadMore numberOfLines={NUMBER_OF_LINES} style={styles.text} customTextComponent={CustomTextComponent}>
        {translation?.text}
      </ReadMore>
    </View>
  );
}

function CustomTextComponent( { children }: { children: string }) {
  return (
    <Markdown>
      {children}
    </Markdown>
  );
}

If I wrap the Markdown component with an inline functional component, as follows, it renders, but twice, one after the other.
import { View } from 'react-native';
import Markdown from 'react-native-markdown-display';
import ReadMore from '@fawazahmed/react-native-read-more';
import { TranslatedQuestion } from '../../../../types';
import { styles } from '../../styles';

const NUMBER_OF_LINES = 10;

export function QuestionView({ translation }: { translation: TranslatedQuestion }) {
  return (
    <View style={styles.innerContainer}>
      <ReadMore numberOfLines={NUMBER_OF_LINES} style={styles.text} customTextComponent={() => <Markdown>{translation?.text}</Markdown>}/>
    </View>
  );
}

Any help I can get on this will be much appreciated.

Hi @UmarFKhawaja , thanks for putting this bug here. I will try to reproduce this.
For multiple rendering, this component actually renders the component multiple times (hidden behind) to calculate the text width and lines. Also the see more and see less texts are rendered separately using the custom component.

Thanks @fawaz-ahmed. When I say rendered twice, I mean that it shows up twice on screen, not rendered in the sense that the render loop is run twice.

I see. Can you share a screenshot ?

From: Umar Farooq Khawaja @.>
Sent: Friday, May 20, 2022 1:59:51 PM
To: fawaz-ahmed/react-native-read-more @.>
Cc: Fawaz Ahmed @.>; Mention @.>
Subject: Re: [fawaz-ahmed/react-native-read-more] CustomTextComponent issues (Issue #65)
Thanks @fawaz-ahmedhttps://github.com/fawaz-ahmed. When I say rendered twice, I mean that it shows up twice on screen, not rendered in the sense that the render loop is run twice.
—
Reply to this email directly, view it on GitHubhttps://github.com/fawaz-ahmed/react-native-read-more/issues/65#issuecomment-1132656053, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEJEVIEZPNXUICPIXXHO5WDVK5IAPANCNFSM5WJ7ZKLQ.
You are receiving this because you were mentioned.Message ID: @.***>

Apologies about the delay. Here's a screenshot.

The first two paragraphs in the screenshot above are being rendered via the ReadMore component, starting from "Fusce" and ending at "aliquet".

@UmarFKhawaja I debugged a bit. The problem is the Markdown component is not passing additional props like onLayout or onTextLayout down to the children component. ReadMore component will not work without it, since it needs those callback props to measure the text width and lines.

Since the issue is with Md component not passing down all props to child components, I will de-scope this issue and close this bug. @UmarFKhawaja if you have any update, you may re-open.
PS: You can resolve this issue with forking the original Md github repo and update it to pass down all props down to the lowest Text component: index -> AstRenderer -> rules based components

authors: UmarFKhawaja fawaz-ahmed

repo: fawaz-ahmed/react-native-read-more


text:
Requesting token via sms is not working

send_code in phone_auth_token.py is not working any more.
If make a manual request using CODE_REQUEST_URL, an error got back:
{
    "error": {
        "message": "SMS is currently unavailable. Please use a different login method or update the app and try again.",
        "type": "OAuthException",
        "code": 15019,
        "error_subcode": 1948016,
        "is_transient": false,
        "error_user_title": "SMS is currently unavailable.",
        "error_user_msg": "SMS is currently unavailable. Please use a different login method or update the app and try again.",
        "fbtrace_id": "A5peRSDpTKhJcp_0fiMawuD"
    }
}

Looks like sms token API has changed.

I can confirm this. I get the following:
tinderbot.utils - ERROR - Could not request SMS-Code for Access token - Code: 400 - Error: {"error":{"message":"SMS is currently unavailable. Please use a different login method or update the app and try again.","type":"OAuthException","code":15019,"error_subcode":1948016,"is_transient":false,"error_user_title":"SMS is currently unavailable.","error_user_msg":"SMS is currently unavailable. Please use a different login method or update the app and try again.","fbtrace_id":"AcTXTOh4ugMXsBxviCRyidc"}}

Solved with https://github.com/fbessez/Tinder/pull/90

repo: fbessez/Tinder


text:
$RegEx placeholder not working

I am having trouble using the $RegEx or $1 placeholder in my extension's replace function. It was working before, but now it doesn't seem to be doing anything. I'm not sure if there are any conflicts with other extensions that I have installed. What can I do to troubleshoot this issue?

Thanks for report, @SueGK !
It was broken, indeed. Its fixed in the new submitted version (but review by Roam Team can take some time, 1 or 2 weeks)

@SueGK , the update is published.

authors: SueGK fbgallet

repo: fbgallet/roam-extension-find-replace