Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cryptic error message when actor.json is an invalid JSON #561

Open
netmilk opened this issue May 2, 2024 · 0 comments
Open

Cryptic error message when actor.json is an invalid JSON #561

netmilk opened this issue May 2, 2024 · 0 comments
Labels
t-tooling Issues with this label are in the ownership of the tooling team.

Comments

@netmilk
Copy link

netmilk commented May 2, 2024

$ cat .actor/actor.json
{
  boo < ------------------------- invalid JSON
        "actorSpecification": 1,
        "name": "my-actor",
        "version": "0.0",
        "buildTag": "latest",
        "environmentVariables": {
    "dockerFile": "./Dockerfile",
    "dockerContext": "../",
    "input": "./input_schema.json"
  }
}
$ apify push
    SyntaxError: Expected property name or '}' in JSON at position 4 (line 2 column 3)

Expected behavior would be to indicate the invalid file path. Something in the spirit of:

$ apify push
'.actor/actor.json' isn't a valid JSON:
   SyntaxError: Expected property name or '}' in JSON at position 4 (line 2 column 3)
@B4nan B4nan added the t-tooling Issues with this label are in the ownership of the tooling team. label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t-tooling Issues with this label are in the ownership of the tooling team.
Projects
None yet
Development

No branches or pull requests

2 participants