uploadcare / uploadcare-ruby

Ruby API client that handles uploads and further operations with files by wrapping Uploadcare Upload and REST APIs.
https://uploadcare.com
MIT License
39 stars 28 forks source link

Extra slash in API endpoints #137

Closed alxgsv closed 8 months ago

alxgsv commented 1 year ago

Describe the bug

When I do Uploadcare::File.file("2f7f4987-40f1-4e9a-a5dc-3d603b6b00fb"), library makes request to https://api.uploadcare.com//files/2f7f4987-40f1-4e9a-a5dc-3d603b6b00fb/ instead of https://api.uploadcare.com/files/2f7f4987-40f1-4e9a-a5dc-3d603b6b00fb/

Expected behavior

Library shouldn't add extra slashes.

Environment

vipulnsward commented 9 months ago

I am unable to reproduce this behavior anymore on main branch. Are you still seeing it? If yes, can share example of where you are seeing this?

vipulnsward commented 8 months ago

Tried again, and not able to reproduce, please reopen if we see this issue again

alxgsv commented 8 months ago

I can confirm that it's not reproducible currently, thank you!