Skip to content

rpc call with json params raises an sql error: identifier will be truncated to .... #1910

Answered by steve-chavez
fusionbeam asked this question in Q&A
Discussion options

You must be logged in to vote

Calling an RPC with 3 json parameters causes an SQL error:

It looks like a json key+value is being sent as a function parameter name and that surpasses the postgres identifier max length(63 chars), that's why the truncation happens.

curl -X POST "https://api....../rpc/board_new_brand" -H "accept: application/json"

Try changing -H "accept: application/json" to -H "Content-Type: application/json".

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by steve-chavez
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1908 on August 13, 2021 15:19.