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 3 months ago

alxgsv commented 7 months 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 4 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 3 months ago

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

alxgsv commented 3 months ago

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