Skip to content
This repository was archived by the owner on Jul 6, 2026. It is now read-only.
This repository was archived by the owner on Jul 6, 2026. It is now read-only.

JSON Parse Error appears randomly on some runs #45

Description

@christopher-avila

Problem

Executing bundle exec rake appengine:exec GAE_CONFIG=xxxx GAE_TIMEOUT=xx -- bundle exec bin/rails db:migrate on Gitlab CI/CD, some times throws an error related with JSON parser. After rerunning the job, it works perfectly (without any change on code nor files). There is no pattern apparently.

The target system is deployed on App Engine Standard, we've migrated from App Engine Flexible where it used to work perfectly, so it could be related to some App Engine Standard specific configuration.

Trace

---------- EXECUTE COMMAND ----------
COMMAND: ["bundle", "exec", "bin/rails", "db:migrate"]
---------- CLEANUP ----------
Deleting the following versions:
- XXXXXXXXXXXXXXXXXXXXXXXXXX
Deleting [default/appengine-exec-XXXXXXXXXX]...
.....done.
rake aborted!
JSON::ParserError: 783: unexpected token at ''
/usr/local/bin/bundle:23:in `load'/usr/local/bin/bundle:23:in `<main>'Tasks: TOP => appengine:exec(See full trace by running task with --trace)Cleaning up file based variablesERROR: Job failed: command terminated with exit code 1

Versions

appengine-ruby: 0.6.0
ruby: 2.6.2
rails version: 6.0.2.2
App Engine Standard

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions