I have a lot of things working via the API create clone config an others all works good.
I then tried to add and SSH key via the API for a QUEM machine and get invalid urlencoded string
So I tried via pvesh set /nodes/promox1/qemu/317/config -sshkeys ....... and found as long as I used RFC 3986 encoding it works fine eg % signs
I copied the exact encoded key that worked on the command line and sent via the API and it still errors out.
So digging deeper I found JSONSchema.pm and changed the message in there for a test.
Via the API I still get invalid urlencoded string via the command line I get the modified message.
Restarted pveproxy still get the original message weird so I m not sure if there a different test for that via the API or if I need to restart some other service.
I only have one node as its my DEV system so I know I m connecting to the right one.
So right now I have 2 thoughts
1) there is a different test for the urlencoded string when using the API ?
2) The amount of data is too long and the HTTP server is some how truncating that and hence the error
Any ideas at all ?
thanks
I then tried to add and SSH key via the API for a QUEM machine and get invalid urlencoded string
So I tried via pvesh set /nodes/promox1/qemu/317/config -sshkeys ....... and found as long as I used RFC 3986 encoding it works fine eg % signs
I copied the exact encoded key that worked on the command line and sent via the API and it still errors out.
So digging deeper I found JSONSchema.pm and changed the message in there for a test.
Via the API I still get invalid urlencoded string via the command line I get the modified message.
Restarted pveproxy still get the original message weird so I m not sure if there a different test for that via the API or if I need to restart some other service.
I only have one node as its my DEV system so I know I m connecting to the right one.
So right now I have 2 thoughts
1) there is a different test for the urlencoded string when using the API ?
2) The amount of data is too long and the HTTP server is some how truncating that and hence the error
Any ideas at all ?
thanks