Cant publish stream (JSON error)

Hello,

I face issue when trying to publish stream (fresh install). Getting such error:

ERROR server comment -

RTPSessionDescriptionDataProviderBasic.getSessionDescriptionData JSON

detected but there is an error in the JSON

com.fasterxml.jackson.core.JsonParseException: Unexpected character (’’

(code 92)): was expecting either valid name character (for unquoted name)

or double-quote (for quoted) to start field name

at [Source: java.io.StringReader@5075c744; line: 1, column: 3]

{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf320{\fonttbl\f0\fswiss\fcharset0

Helvetica;}{\colortbl;\red255\green255\blue255;}\margl1440\margr1440\vieww9000\viewh8400\viewkind0\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural\pardirnatural\f0\fs24

\cf0

rtsp://:@..***.100:554/cam/realmonitor?channel=1&subtype=0}

CAn someone tell me where should I look for trouble?

It looks like your text editor has save the stream file as formatted text instead of plain text.

Make sure you use a text editor that saves the file in plain text (utf8) mode.

TextEdit on the Mac defaults to a rich text format. You need to manually select plain text by choosing Format / Make Plain Text from the menu and then ensuring that you save it in a UTF-8 format from the Save dialog.

Roger.

OS: MAC OS x

Are you using a .stream file like this:

How to specify per-stream settings in .stream files

If so and the file is malformed you would get a json error.

Can you show the contents of the .stream file?

Salvadore

It looks like your text editor has save the stream file as formatted text instead of plain text.

Make sure you use a text editor that saves the file in plain text (utf8) mode.

TextEdit on the Mac defaults to a rich text format. You need to manually select plain text by choosing Format / Make Plain Text from the menu and then ensuring that you save it in a UTF-8 format from the Save dialog.

Roger.

That was the reason.

Thanks a lot, issue resolved