Error SMS

tracker2 years ago

When I put a command to send and check the SMS option, this error appears, what do I do?

Cannot invoke "java.lang.CharSequence.toString()" because "replacement" is null - NullPointerException (... < HttpSmsClient:76 < *:94 < BaseProtocol:126 < CommandsManager:76 < ...)
Anton Tananaev2 years ago

Most likely you haven't configured the phone number for the device.

tracker2 years ago

I'm testing the platform and this device from what I looked in the manual does not offer this option what to do?

Anton Tananaev2 years ago

I'm talking about the server side. To send an SMS to the device server obviously need to know what the phone number is. Where have you set it?

tracker2 years ago

No, the sms would come from the traccar server.
Remembering that SMS already works in notifications, I wanted to test it now in the menu in commands

https://imageup.me/11qo

Anton Tananaev2 years ago

I understand that the SMS would come from the server. And that's why I'm asking where did you configure the phone number to send the SMS to?

tracker2 years ago

I thought that with the traccar SMS app configured, I had to put the command and send it, since the notification is working.
Where do I put the number?

tracker2 years ago

Sorry I already found the place.

Anton Tananaev2 years ago

Where did you put it?

tracker2 years ago
Anton Tananaev2 years ago

I understand that you put it there now, but I meant where did you put the phone number previously?

tracker2 years ago

I had not placed.

tracker2 years ago

Thanks a lot for your help my friend.

Anton Tananaev2 years ago

Wait. So you never configured the phone number anywhere? How did you expect it to work in the first place?

Suleman Ali4 months ago

I add some device and add phone and contact while added device and also configure sms from our own custom server. other sms like custom notifications are seeing fine but when I put ignition on Alerm it send sms with subject or Phone as empty in api call . is there any specific reason ??