Closed sdac closed 9 years ago
Well I found a simple solution. :)
Apparently, we can work around it by simply adding six trailing zeros to the duration before generating the credentials (on the serverside).
@sdac Thanks for reporting it. This looks like something that should be addressed in the SDK. I will be looking on to it.
@sdac I fixed this on the SDK side. The new version will be released in the weeks to come. Thanks again for bringing our attention to this issue.
Despite giving this function the correct credentials, it generates a URL of the form:
Which is incorrect, the "duration" value is written as a double when the URL is created. This yields the response:
The issue can be fixed manually for each URL by removing the fractional part of the "duration" as shown below:
The above URLs can be verified using curl. Though since this behaviour is part of the SDK and out of our control we can't fix it ourselves.
I hope this issue will be fixed in short since it currently prevents us from using this lib.