openwrt / openwrt/asu

How do I debug the Python web server? / OPTIONS /api/v1/build fails with 405

Open
#1,587 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
450
Forks
111
PR merge metrics
No merged PRs in 30d

Description

Image

Basically OPTIONS /build seems to fail with 405 Method Not Allowed.
podman compose logs server only shows INFO: 10.89.0.3:35486 - "OPTIONS /api/v1/build?1774078135285 HTTP/1.1" 405 Method Not Allowed

For my own personal server I am happy to blanket allow CORS & OPTIONS but I need to be able to get in and debug.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported OPTIONS request against /api/v1/build and inspect the server output from podman compose logs server. Trace where the Python web server handles this endpoint and determine the expected behavior for OPTIONS; done means the 405 cause and a reliable debugging path are identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.