relaton / api.relaton.org

Relaton Service API
https://relaton-api.herokuapp.com
1 stars 1 forks source link

500 error with 'https://api.relaton.org/api/v1/document?code=ISO%10241-1' #39

Closed ronaldtse closed 3 years ago

ronaldtse commented 3 years ago

Try: https://api.relaton.org/api/v1/document?code=ISO%10241-1

andrew2net commented 3 years ago

@ronaldtse the URL https://api.relaton.org/api/v1/document?code=ISO%10241-1 is incorrect. It should be https://api.relaton.org/api/v1/document?code=ISO%2010241-1

ronaldtse commented 3 years ago

But still it should not return 500. Can you help fix it so it fails gracefully? Thanks.

andrew2net commented 3 years ago

It seems AWS CloudFront returns the error. CloudFront tries to parse the URL parameters. Lambda gets parsed parameters in a hash. Maybe @phuonghuynh can check if CloudFront has settings to workaround it.

ronaldtse commented 3 years ago

@andrew2net great find, thanks!