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.

request params is not support

See original GitHub issue

First Check

  • I added a very descriptive title to this issue.
  • I used the GitHub search to find a similar issue and didn’t find it.
  • I searched the FastAPI documentation, with the integrated search.
  • I already searched in Google “How to X in FastAPI” and didn’t find any information.
  • I already read and followed all the tutorial in the docs and didn’t find an answer.
  • I already checked if it is not related to FastAPI but to Pydantic.
  • I already checked if it is not related to FastAPI but to Swagger UI.
  • I already checked if it is not related to FastAPI but to ReDoc.

Commit to Help

  • I commit to help with one of those options 👆

Example Code

class Item(BaseModel):  
    name: str
    age: int
    height: float

app = FastAPI()

@app.get("/hh")
async def update_item(item: Item):  # item需要与Item对象定义保持一致
    return {
        "method": 'get',
        "people_name": item.name,
        "people_age": item.age,
        "people_height": item.height
    }

Description

this request method is GET
if i request this function by postman ,

image

so that is not support

Operating System

Windows

Operating System Details

No response

FastAPI Version

0.63.0

Python Version

Python 3.10.0

Additional Context

emo

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
panlacommented, Dec 24, 2021

@insomnes @yztdemo

name: Optional[str] = Query('', title='name')
1reaction
panlacommented, Dec 24, 2021
# to resolve GET method

item: Item = Depends(Item)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Parameter not supported! - Common causes and quick fixes
A detailed guide on how to resolve errors related to "parameter not supported!"
Read more >
The 'resource' request parameter is not supported. - IBM
In Cognos Configuration, when you attempt to create and test an OIDC connection to AzureAD, the following error appears: [ ERROR ] Call...
Read more >
Dynamics 365 - The 'resource' request parameter is not ...
AADSTS901002 : The 'resource' request parameter is not supported. The original URL generated by Mule Connector looks like the following:
Read more >
Request method 'POST' not supported when use ...
When i change method to GET, i get this error: Required String parameter 'guestName' is not present. How to fix this? java ·...
Read more >
'params' argument does not accept custom query string #917
I think passing params without values should be supported by params parameter. Currently setting param's value to None in params dict makes ...
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