ClemensElflein / open_mower_ros

Other
500 stars 124 forks source link

Crash with NTRIP talking utf-8 #133

Open vermut opened 1 month ago

vermut commented 1 month ago

I suspect something doesn't expect Unicode response from NTRIP server, but LatPos proudly uses Latvian locale for dates.

# curl -v --user veretennik:AAAEEEE http://91.216.2.20:5001/SITE
*   Trying 91.216.2.20:5001...
* Connected to 91.216.2.20 (91.216.2.20) port 5001
* Server auth using Basic with user 'veretennik'
> GET /SITE HTTP/1.1
> Host: 91.216.2.20:5001
> Authorization: Basic dmVyZXRlbm5pazpBQUFFRUVF
> User-Agent: curl/8.5.0
> Accept: */*
>
* HTTP 1.0, assume close after body
< HTTP/1.0 401 Unauthorized
< Server: GNSS Spider 7.9.0.386/1.0
< Date: sv▒td., 28 j▒l. 2024 13:38:56 GMT
# export OM_NTRIP_ENDPOINT="SITE"
# export OM_NTRIP_HOSTNAME="91.216.2.20"
# export OM_NTRIP_PASSWORD="FAKEPASS"
# export OM_NTRIP_PORT="5001"
# export OM_NTRIP_USER="veretennik"

Results in:

[ERROR] [1722173794.385135]: Unable to read response from server at http://91.216.2.20:5001
[ERROR] [1722173794.389700]: Exception: 'utf-8' codec can't decode byte 0xe7 in position 55: invalid continuation byte
[ERROR] [1722173794.394787]: Unable to connect to NTRIP server
[INFO] [1722173794.403409]: Stopping RTCM publisher
[INFO] [1722173794.410363]: Disconnecting NTRIP client