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

Parse error #77

Open
napoleon1bonaparte opened this issue Feb 11, 2022 · 9 comments
Open

Parse error #77

napoleon1bonaparte opened this issue Feb 11, 2022 · 9 comments

Comments

@napoleon1bonaparte
Copy link

Hello,
I did some research but couldn't find an answer to my problem.
I get the error "parse error: Invalid numeric literal at line 1, column 6".
It seems that this error occurs after downloading and unzipping ovpn configurations.

Here are the container docker logs:

2022-02-11 23:06:21 INFO: Skipping downloading OVPN files - as they are not older than 120 minute(s).
2022-02-11 23:06:21 INFO: SERVER has been set to FR589.NORDVPN.COM
parse error: Invalid numeric literal at line 1, column 6
2022-02-11 23:06:22 INFO: Skipping downloading OVPN files - as they are not older than 120 minute(s).
2022-02-11 23:06:22 INFO: SERVER has been set to FR589.NORDVPN.COM
parse error: Invalid numeric literal at line 1, column 6
2022-02-11 23:06:23 INFO: Skipping downloading OVPN files - as they are not older than 120 minute(s).
2022-02-11 23:06:23 INFO: SERVER has been set to FR589.NORDVPN.COM
parse error: Invalid numeric literal at line 1, column 6
2022-02-11 23:06:25 INFO: Skipping downloading OVPN files - as they are not older than 120 minute(s).
2022-02-11 23:06:25 INFO: SERVER has been set to FR589.NORDVPN.COM
parse error: Invalid numeric literal at line 1, column 6
2022-02-11 23:06:26 INFO: Skipping downloading OVPN files - as they are not older than 120 minute(s).
2022-02-11 23:06:26 INFO: SERVER has been set to FR589.NORDVPN.COM
parse error: Invalid numeric literal at line 1, column 6
2022-02-11 23:06:27 INFO: Skipping downloading OVPN files - as they are not older than 120 minute(s).
2022-02-11 23:06:27 INFO: SERVER has been set to FR589.NORDVPN.COM
parse error: Invalid numeric literal at line 1, column 6
2022-02-11 23:06:28 INFO: Skipping downloading OVPN files - as they are not older than 120 minute(s).
2022-02-11 23:06:28 INFO: SERVER has been set to FR589.NORDVPN.COM
parse error: Invalid numeric literal at line 1, column 6
2022-02-11 23:06:29 INFO: Skipping downloading OVPN files - as they are not older than 120 minute(s).
2022-02-11 23:06:29 INFO: SERVER has been set to FR589.NORDVPN.COM
parse error: Invalid numeric literal at line 1, column 6
2022-02-11 23:06:30 INFO: Skipping downloading OVPN files - as they are not older than 120 minute(s).
2022-02-11 23:06:30 INFO: SERVER has been set to FR589.NORDVPN.COM
parse error: Invalid numeric literal at line 1, column 6

I run the container with this command :

docker run -d
--cap-add=NET_ADMIN
--name=vpn1
--dns=103.86.96.100
--dns=103.86.99.100
--restart=always
-e "USERNAME=XXX"
-e "PASSWORD=XXX"
-e "LOCAL_NETWORK=172.17.0.0/16"
-e "SERVER=fr589.nordvpn.com"
-v /etc/localtime:/etc/localtime:ro
-v ovpn-data:/app/ovpn/config
-p 8118:8118
jeroenslot/nordvpn-proxy:latest

If you have any idea where the problem is, I'm all for it.

@Joentje
Copy link
Owner

Joentje commented Feb 12, 2022

Can you try to remove te volume? Maybe you don't have write access.

@napoleon1bonaparte
Copy link
Author

I get the same error when entering a path to a local folder instead of a volume.

@ChTBoner
Copy link

ChTBoner commented Feb 19, 2022

``it seems the errors comes from the servers_recommandations.sh

bash-5.0# bash servers_recommendations.sh
2022-02-19 19:05:29 INFO: SERVER has not been set, choosing best for you.
2022-02-19 19:05:29 INFO: Your country setting will be used. This is set to: FR
2022-02-19 19:05:29 INFO: The country codes are known, skipping
parse error: Invalid numeric literal at line 1, column 7
shuf: invalid number '-1'
parse error: Invalid numeric literal at line 1, column 7
parse error: Invalid numeric literal at line 1, column 7
parse error: Invalid numeric literal at line 1, column 7
parse error: Invalid numeric literal at line 1, column 7
parse error: Invalid numeric literal at line 1, column 7
parse error: Invalid numeric literal at line 1, column 7

parse error: Invalid numeric literal at line 1, column 7

the following command returns a 429 code: Too Many Requests.

curl -s https://api.nordvpn.com/v1/servers/recommendations?limit=1&filters%5Bcountry_id%5D=74&filters%5Bservers_technologies%5D%5Bidentifier%5D=openvpn_tcp

@ChTBoner
Copy link

ChTBoner commented Feb 19, 2022

I fixed my issue by setting up the server via the SERVER environment variable.

EDIT: clarification

@napoleon1bonaparte
Copy link
Author

Do you mean, fill in a server in the "SERVER" environment variable ?

@ChTBoner
Copy link

yes

@napoleon1bonaparte
Copy link
Author

Ok, I wanted to make sure I understood correctly.
Look at my first post, I correctly informed a server. I did several tests with different configurations and sometimes I don't have this problem without understanding.

@demianrey
Copy link

Hi, someone was able to solve this error, it worked correctly for me with the env variable, but now I get this parse error

@melihakan
Copy link

melihakan commented Jul 10, 2023

Hi, is this error solved ? @NrGiZ @ChTBoner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants