Json Api Text Url issue
App Development2 posts262 views1 likesLast activity Mar 2022
DA
David_MartinsOP
Mar 2022Hi all,
While doing some tests on daml hub exercising choices on contracts, I’ve discovered that a text field with a url errors if it contains query params. On further investigation I attempted exercising the same errored choice on a postman request as this example:
{
"contractId": "00a69136c6ed6f30d7cea62ccea61c8d3a3e42ce63fd115bb6fef9ff058cb8a301",
"templateId": "TestContract",
"choice": "ExerciseChoice",
"argument": {
"url": "http://foo-bar.com/?ID=18314"
}
}
and the response I received was the following:
<!doctype html>
<meta charset="utf-8">
<meta name=viewport content="width=device-width, initial-scale=1">
<title>502</title>502 Bad Gateway
Can you help me in identifying the root cause of this issue?
Thank you in advance
DT
dtanabe
Mar 2022Sorry about this! This particular command was flagged by our firewall as potentially malicious, but this issue should now be resolved.