You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using chalice local, a route will not match if parameters are passed via the query string.
Given:
from chalice import Chalice
app = Chalice(app_name='web')
@app.route('/')
def index():
name = app.current_request.query_params.get('name')
return {'hello': name}
Running chalice local and then visiting http://localhost:8000/?name=test will result in ERR_EMPTY_RESPONSE with an error tracing back to raise ValueError("No matching route found for: %s" % url).
Running chalice deploy and then visiting the provided URL functions as expected and will return {"hello": "test"}.
The text was updated successfully, but these errors were encountered:
When using
chalice local
, a route will not match if parameters are passed via the query string.Given:
Running
chalice local
and then visitinghttp://localhost:8000/?name=test
will result inERR_EMPTY_RESPONSE
with an error tracing back toraise ValueError("No matching route found for: %s" % url)
.Running
chalice deploy
and then visiting the provided URL functions as expected and will return{"hello": "test"}
.The text was updated successfully, but these errors were encountered: