Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #371
Description of changes
When I have a secret with a uri in it, it has problems. Here is what the log shows:
trigger_1 | 2020-10-27T10:16:49-05:00 [Trigger House East Cat/Dog detector] Error: Failed to call DeepStack at http://deepstack-ai:5000/: Error: Invalid URI "http:///&/v1/vision/detection"
I wrote a test that I think identifies the issue. However I may be wrong. Essentially
http://127.0.0.1:5000/
becomeshttp://127.0.0.1:5000/
and that seems to be a problem. I'm not sure why this would be a problem.On a side note, when my secret is a username or password it seems to work fine; also note my usernames and passwords do not have special characters in it.
Checklist