[SR-Users] JSON Error

Daniel W. Graham dan at cmsinter.net
Fri Nov 26 02:59:43 CET 2021


Thats what I was hoping to avoid unless there was an alternate option.

-dan

________________________________
From: sr-users <sr-users-bounces at lists.kamailio.org> on behalf of Ovidiu Sas <osas at voipembedded.com>
Sent: Wednesday, November 24, 2021 10:51:33 PM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Subject: Re: [SR-Users] JSON Error

Add a log in the config on each location and correlate with the error log.

-ovidiu

On Wed, Nov 24, 2021 at 22:37 Daniel W. Graham <dan at cmsinter.net<mailto:dan at cmsinter.net>> wrote:

That’s what I’m looking to do, but there are lots of locations in the config file json is used and the error doesn’t give any indication what call to jansson_get is causing the error.



-dan



From: sr-users <sr-users-bounces at lists.kamailio.org<mailto:sr-users-bounces at lists.kamailio.org>> on behalf of Fred Posner <fred at palner.com<mailto:fred at palner.com>>
Date: Wednesday, November 24, 2021 at 10:11 PM
To: sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org> <sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>>
Subject: Re: [SR-Users] JSON Error

Are you verifying the document is valid JSON?

Fred Posner | palner.com<http://palner.com>
Matrix: @fred:matrix.lod.com<http://matrix.lod.com>
o: +1 (212) 937-7844

On 11/24/21 7:47 PM, Daniel W. Graham wrote:
> My log is filled with this and have been unsuccessful locating
> additional information by increasing debug level.
>
>
>
> Any thoughts on how to quickly isolate?
>
>
>
> /usr/local/sbin/kamailio[7678]: ERROR: jansson [jansson_funcs.c:48]:
> janssonmod_get_helper(): json error at line 1, col 0: '[' or '{'
> expected near end of file
>
> /usr/local/sbin/kamailio[7677]: ERROR: jansson [jansson_funcs.c:46]:
> janssonmod_get_helper(): failed to parse json:
>
> /usr/local/sbin/kamailio[7677]: ERROR: jansson [jansson_funcs.c:48]:
> janssonmod_get_helper(): json error at line 1, col 0: '[' or '{'
> expected near end of file
>
> /usr/local/sbin/kamailio[7675]: ERROR: jansson [jansson_funcs.c:46]:
> janssonmod_get_helper(): failed to parse json:
>
> /usr/local/sbin/kamailio[7675]: ERROR: jansson [jansson_funcs.c:48]:
> janssonmod_get_helper(): json error at line 1, col 0: '[' or '{'
> expected near end of file
>
>
>
> -dan
>
>
>
>
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>
> Important: keep the mailing list in the recipients, do not reply only to the sender!
> Edit mailing list options or unsubscribe:
>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
VoIP Embedded, Inc.
http://www.voipembedded.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20211126/6a276cf6/attachment.htm>


More information about the sr-users mailing list