X
Xata4w ago
Cawfehhh

PATCH record not working but GET is?

I didn't change anything and suddenly the PATCH record stopped working, even though I followed the convention https://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name/tables/table_name/data/record_id The error message I got was:
Error code

400

Full message

400 - "{\"id\":\"[REDACTED]\",\"message\":\"invalid record: link ID does not exist\"}\n"
Request

{ "body": { "[REDACTED]" }, "headers": { "authorization": "**hidden**", "content-type": "application/json", "accept": "application/json,text/html,application/xhtml+xml,application/xml,text/*;q=0.9, image/*;q=0.8, */*;q=0.7" }, "method": "PATCH", "uri": "[REDACTED]", "gzip": true, "rejectUnauthorized": true, "followRedirect": true, "resolveWithFullResponse": true, "followAllRedirects": true, "timeout": 300000, "encoding": null, "json": false, "useStream": true }
Error code

400

Full message

400 - "{\"id\":\"[REDACTED]\",\"message\":\"invalid record: link ID does not exist\"}\n"
Request

{ "body": { "[REDACTED]" }, "headers": { "authorization": "**hidden**", "content-type": "application/json", "accept": "application/json,text/html,application/xhtml+xml,application/xml,text/*;q=0.9, image/*;q=0.8, */*;q=0.7" }, "method": "PATCH", "uri": "[REDACTED]", "gzip": true, "rejectUnauthorized": true, "followRedirect": true, "resolveWithFullResponse": true, "followAllRedirects": true, "timeout": 300000, "encoding": null, "json": false, "useStream": true }
I tried calling the same URL but using GET and I got the correct record. Why does this happen?
4 Replies
cmck
cmck4w ago
Hi there, I'll take a look and see what the issue might be. Could you please share your workspace slug? You can do so privately by emailing [email protected] . Once I have the workspace slug I'll be able to toubleshoot further.
Cawfehhh
CawfehhhOP4w ago
Sent! Thanks for the quick response!
cmck
cmck4w ago
I'll reply on the ticket you've opened moving forward so we can keep any sensitive info private 👍
Cawfehhh
CawfehhhOP4w ago
awesome, thanks!

Did you find this page helpful?