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.

Assessment

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

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.

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.

Dominant language
Python
Stars
461
Forks
116
Avg merge
8d 30m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from openwrt/asu

All issues in openwrt/asu

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.