ERROR 500 sending sms with android apk

vmedrano3 years ago

hi iam getting error 500 whe using apk android traccar gsm gateway.
i made a debug with wiredshark and check the logs, i dont know whats happend.

but i made an aplication to tee whatsa is sending the traccar server to the sms gateway nd this is whats is sending

Accept text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection keep-alive
Content-Length 92
Authorization e5216fc5
Content-Type application/json
User-Agent Jersey/2.31 (HttpUrlConnection 11.0.5)
{
        "to": "+18294403683",
        "msg": "redmi8 stopped at 2021-10-19 15:21:41"
    }

i can see my autorizartion nd test with postman the android gsm service and is working. if someone
can share some knowldge.

and try this from the server an works

 wget http://110.110.24.4:8082/ --post-data='{"to":"8294403683", "message": "wwwwwwwwwwwwwwwww12222 desde el vpn"}' --header "Authorization: e5216fc5x"

this is the error in the server logs

 WARN: SMS send failed - HTTP 500 Server Error - InternalServerErrorException (...)
2021-10-19 15:32:27  WARN: SMS send failed - HTTP 500 Server Error - InternalServerErrorException (...)
2021-10-19 15:32:27  WARN: SMS send failed - HTTP 500 Server Error - InternalServerErrorException (...)

Victor

Anton Tananaev3 years ago

What does your Traccar config look like?

victor medrano3 years ago

I can't post anything with a new account or my old account
forbidden page always

victor medrano3 years ago
Anton Tananaev3 years ago

Config looks very messy. I see a mix of spaces and tabs. I believe JSON doesn't support tabs, so that could be the reason. You should probably clean it up and use only spaces, like we do by default and in the documentation.