404 error API

119 views
Skip to first unread message

Leonardo

unread,
Sep 22, 2022, 11:26:16 AM9/22/22
to Chrome UX Report (Discussions)
Hi, I'm trying to connect to the crUX API:


But I get the following error:

Raw response for the API
Status code 404


How can I fix it? Thanks.



Barry Pollard

unread,
Sep 22, 2022, 11:36:38 AM9/22/22
to Chrome UX Report (Discussions), Leonardo
Just tested it and it's working. Has your key expired?

Note I also get a 404 if I make a GET request ti the API but you should be using a POST request. Can you give the exact call you are making (ideally as a curl command) with the key blanked out?

Thanks,
Barry

Leonardo

unread,
Sep 22, 2022, 12:06:23 PM9/22/22
to Chrome UX Report (Discussions), barryp...@google.com, Leonardo
Thanks Barry! the error was about the use of GET instead POST as you mentioned, also I had to change the HTTP referrers restriction at my GCP account / crUX API (this because I'm calling the API from a nocode tool.
Reply all
Reply to author
Forward
0 new messages