Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to retrieve the request path from event in local mode #767

Open
brianjbeach opened this issue Mar 26, 2018 · 1 comment
Open

Unable to retrieve the request path from event in local mode #767

brianjbeach opened this issue Mar 26, 2018 · 1 comment

Comments

@brianjbeach
Copy link
Contributor

brianjbeach commented Mar 26, 2018

This is a two part issue.

  1. The Chalice request object does not expose the original path. I assume this is because the route decorator has already parsed the path in to variables and therefore, you no longer the original. However, there are occasions you might need it. In my case I need to validate a oauth1 signature using the pyLTI module. So this is not really an issue but a feature request.

  2. There is a workaround to the limitation above. API Gateway includes the path in the requestContext which is available from the Chalice request object. Unfortunately, Chalice local mode omits the path (and other keys) from the requestContext. This is a bug as local mode should behave the same way as API Gateway whenever possible. As a result my test cases are failing. Will submit a pull request to fix this.

@stealthycoin
Copy link
Contributor

Marking this as a feature request for local mode.

jamesls added a commit that referenced this issue Apr 10, 2018
PR #766
Issue #767

* brianjbeach-master:
  Add fix to changelog
  Fix parsing blank query strings in local mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants