Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP OPTIONS Measurement Timeout #268

Open
prvndev opened this issue Jan 2, 2025 · 2 comments
Open

HTTP OPTIONS Measurement Timeout #268

prvndev opened this issue Jan 2, 2025 · 2 comments
Assignees

Comments

@prvndev
Copy link

prvndev commented Jan 2, 2025

OPTIONS support was added for HTTP Measurements re: #261 however when running them they always timeout.

curl -X 'POST' 'https://api.globalping.io/v1/measurements' \
-H 'Content-Type: application/json' \
-d '{
  "type": "HTTP",
  "inProgressUpdates": true,
  "limit": "10",
  "locations": [
    {
      "magic": "World"
    }
  ],
  "measurementOptions": {
    "request": {
      "method": "OPTIONS"
    },
    "protocol": "HTTPS"
  },
  "target": "cdn.jsdelivr.net"
}'

KaHbDnSuN9gzIxHj

"result": {
  "status": "failed",
  "rawHeaders": "",
  "rawBody": "",
  "rawOutput": "\n\nThe measurement timed out"
}

FWIW, the frontend demo at globalping.io is also missing the OPTIONS method.
image

@alexey-yarmosh
Copy link
Member

alexey-yarmosh commented Jan 2, 2025

Hey, thanks for the report. While API already allows OPTIONS, support for that method is not fully released yet in other places of the system. I'll notify you here and close the issue when everything will be launched and ready to use.

@MartinKolarik
Copy link
Member

@alexey-yarmosh let's do this to provide a better error in these cases: https://github.com/MartinKolarik/globalping-probe/blob/39afd66f3f8a8a457f4202262372f5597a980a42/src/probe.ts#L143-L144

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants