Script stopped working #1
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
parse error: Invalid numeric literal at line 1, column 6
I got a similar error:
Note that the error was raised after
php: command not found
, mentioned in #3.This might indicate that the parse error actually occured after line 233.
After some debugging, I think this was simply a consequence of user error in
ponsapi.config
.I mistakenly specified
PONS_DICT="slen"
instead ofPONS_DICT="ensl"
.This made
curl -s --header "X-Secret: $PONS_SECRET" $PONS_URI$PONS_QUERY
returnNot found
, which in turn ledPONS_JSON
to get assigned "Not found". With this, the error which happens in line 250 can be reproduced:After fixing the config file, the script works as expected.
You could handle the edge case of
PONS_JSON
being "Not found" or instruct the users to carefully write their config.