boudey commented on issue #51235:
URL: https://github.com/apache/airflow/issues/51235#issuecomment-2926737792
I am facing the same issue as described above. The uvicorn logs show the
following error:
`"PATCH /{base_url}/task-instances/01972a55-7d65-7d38-90c4-e29aaf940fae/run
HTTP/1.1" 405 Method Not Allowed`
Here is the stack dump of the api-server where 405 is thrown:
```
File "<string>", line 1, in <module>
File "/usr/lib/python3.10/multiprocessing/spawn.py", line 116, in
spawn_main
exitcode = _main(fd, parent_sentinel)
File "/usr/lib/python3.10/multiprocessing/spawn.py", line 129, in _main
return self._bootstrap(parent_sentinel)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in
_bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.10/dist-packages/uvicorn/_subprocess.py",
line 80, in subprocess_started
target(sockets=sockets)
File
"/usr/local/lib/python3.10/dist-packages/uvicorn/supervisors/multiprocess.py",
line 63, in target
return self.real_target(sockets)
File "/usr/local/lib/python3.10/dist-packages/uvicorn/server.py", line 66,
in run
return asyncio.run(self.serve(sockets=sockets))
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File
"/usr/local/lib/python3.10/dist-packages/starlette/middleware/base.py", line
141, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File
"/usr/local/lib/python3.10/dist-packages/starlette/middleware/exceptions.py",
line 62, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File
"/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line
42, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line
720, in __call__
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line
751, in app
await partial.handle(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line
285, in handle
```
Furthermore, in `routing.py:handle`, `self.methods` is `{'GET'}` and
`scope["method"]` is `PATCH`
Tried to see how the route `/task-instances/{id}/run` is setup in
`task_instances.py` and seems to be correct.
Appreciate your help with this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]