rpc call with json params raises an sql error: identifier will be truncated to .... #1910
-
Environment
Description of issueCalling an RPC with 3 json parameters causes an SQL error: Any hints onto what may be problem? here are the exact parameters and their value that are causing this error. I can run this command against any schema endpoint it causes the same error. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
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.
Try changing |
Beta Was this translation helpful? Give feedback.
-
Life saver! Thank you. |
Beta Was this translation helpful? Give feedback.
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.
Try changing
-H "accept: application/json"
to-H "Content-Type: application/json"
.