question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

404 Error with OpenAPI

See original GitHub issue

Hi all,

New to fastAPI, and coming from Flask, I’m very impressed by the solution. But using the OpenAPI documentation/UI, I can see in the logs that I have the following issue each time I extend a resource/API : INFO: <IP>:57175 - "GET /%5Bobject%20Module%5D HTTP/1.1" 404 Not Found The API is working, but I get this error in the log.

I’m using v0.63.0, on an ubuntu server (18.04)

Thanks a lot for your support.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:17
  • Comments:27 (3 by maintainers)

github_iconTop GitHub Comments

8reactions
ArcLightSlavikcommented, Jan 14, 2021

Created a pull request with a temporary fix to this (#2656). Thanks @Gatux for linking the issue with the monkey patch.

5reactions
zijamcommented, Jan 12, 2021

I also get the samme INFO message in my log

TRACE:    127.0.0.1:44588 - ASGI [10] Started scope={'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.1'}, 'http_version': '1.1', 'server': ('127.0.0.1', 8000), 'client': ('127.0.0.1', 44588), 'scheme': 'http', 'method': 'GET', 'root_path': '', 'path': '/[object Module]', 'raw_path': b'/[object%20Module]', 'query_string': b'', 'headers': '<...>'}
TRACE:    127.0.0.1:44588 - ASGI [10] Send {'type': 'http.response.start', 'status': 404, 'headers': '<...>'}
INFO:     127.0.0.1:44588 - "GET /%5Bobject%20Module%5D HTTP/1.1" 404 Not Found
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to specify multiple 404 causes in OpenAPI (Swagger)?
If the client gets a 404 it could either because the delivery ID was not found, or the delivery did not contain any...
Read more >
OpenApi 3 (Swagger UI), Spring Boot, Spring Security: 404 ...
antMatchers() rule to your SecurityConfig still has 404 error. I'm using: Spring Boot v2.4.1; Spring Security; OpenApi 3 with swagger-ui ( ...
Read more >
Getting error 404 in deployed swagger project - Google Groups
For the 404, it's likely you didn't set your basePath of your application. You received this message because you are subscribed to the...
Read more >
404 NotFound while accessing Apis
hello, You have to create a REST resource at /api/banks/1 first; otherwise you ...
Read more >
HTTP 404 for swagger-ui - Open API
NET Core Web Application already running with SwaggerFeature plugin : Swagger UI link is visible from /metadata page, and is working as excepted ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found