You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(I had to fix the /search endpoint missing {number}, but after that...)
When I call the /v1/receive endpoint, I get this error in my client:
com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `java.util.ArrayList<java.lang.Object>` from Object value (token `JsonToken.START_OBJECT`)
at [Source: (String)"[{"envelope":{"source":"+178...","sourceNumber":"+1781...","sourceUuid":"...","sourceName":"...","sourceDevice":2,"timestamp":1732652479395,"dataMessage":{"timestamp":1732652479395,"message":"...",...
The function func (a *Api) Receive(c *gin.Context) does seem to return a string, rather than a JSON object. But presumably it's a JSON string, returned from the client.
I think the fix would be to, in signal-cli-rest-api, parse the returned string into an object, return it with c.JSON(200, obj), and add the object type to the swagger comments. Does that sound right?
Are you using the latest released version?
Yes
Have you read the troubleshooting page?
Yes
What type of installation are you running?
signal-cli-rest-api Docker Container
In which mode are you using the docker container?
Native Mode
What's the architecture of your host system?
x86-64
Additional information
No response
The text was updated successfully, but these errors were encountered:
I think the fix would be to, in signal-cli-rest-api, parse the returned string into an object, return it with c.JSON(200, obj), and add the object type to the swagger comments. Does that sound right?
yeah, right. It is on my todo list since a while, but I haven't found time to work on that.
The problem
I ran the liblab API generator against the swagger code with:
(I had to fix the /search endpoint missing {number}, but after that...)
When I call the
/v1/receive
endpoint, I get this error in my client:The function
func (a *Api) Receive(c *gin.Context)
does seem to return a string, rather than a JSON object. But presumably it's a JSON string, returned from the client.I think the fix would be to, in signal-cli-rest-api, parse the returned string into an object, return it with
c.JSON(200, obj)
, and add the object type to the swagger comments. Does that sound right?Are you using the latest released version?
Have you read the troubleshooting page?
What type of installation are you running?
signal-cli-rest-api Docker Container
In which mode are you using the docker container?
Native Mode
What's the architecture of your host system?
x86-64
Additional information
No response
The text was updated successfully, but these errors were encountered: