#Workers Observability 500 Internal Error

2 messages · Page 1 of 1 (latest)

desert moth
#

https://developers.cloudflare.com/api/resources/workers/subresources/observability/subresources/telemetry/methods/query/#(params) 0 > (param) queryId > (schema)

Getting 500 Internal Error from the above endpoint since March 24th. Had it working on the 22nd and 23rd to pull logs from Workers Observability.
I made no changes to my api call or payload on the 24th.

www.cloudflarestatus.com, reports Workers Observability is Operational.

Queries work fine on the Workers Observability Dashboard in the browser.

payload:

query_id = "<id>"
now_ts = time.time() * 1000
since_ts = now_ts - (days * 24 * 60 * 60 * 1000)

"queryId": query_id,
"timeframe": {"from": since_ts, "to": now_ts}, 
"limit": 2000,
"orderBy": [{"value": "$metadata.timestamp", "order": "asc"}],
"view": "events"
tiny quest
#

Hey 👋 ,

Could you try moving orderBy inside a parameters object as a single object (not an array), like this:

"parameters": {"orderBy": {"value": "$metadata.timestamp", "order": "asc"}}

That matches the current documented API schema and worked from my testing.