[GH-ISSUE #339] '/' replaced with %252F in URL [Instagram] #211

Closed
opened 2026-03-03 16:46:43 +03:00 by kerem · 4 comments
Owner

Originally created by @f-holland on GitHub (Feb 24, 2017).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/339

Description:

My URL is being encoded and all the slashes ( / ) are being replaced with %252F.
Also, my colons ( : ) are being replaced with %253A. My code is just here:
https://hastebin.com/deninuloza.lua

OAuth Provider (Twitter, Github, ..):

  • Instagram

OAuth Version:

  • Version 1
  • Version 2

OS (Please fill the version) :

  • iOS :
  • OSX :
  • TVOS :
  • WatchOS :

Installation method:

  • Carthage
  • CocoaPods
  • Manually

Library version:

  • head
  • v1.0.0
  • v0.6
  • other: (Please fill in the version you are using.)

Xcode version:

  • 8.0 (Swift 3.0)

  • 8.0 (Swift 2.3)

  • 7.3.1

  • other: (Please fill in the version you are using.)

  • objective c

Originally created by @f-holland on GitHub (Feb 24, 2017). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/339 ### Description: My URL is being encoded and all the slashes ( / ) are being replaced with %252F. Also, my colons ( : ) are being replaced with %253A. My code is just here: https://hastebin.com/deninuloza.lua ### OAuth Provider (Twitter, Github, ..): - Instagram ### OAuth Version: - [ ] Version 1 - [X] Version 2 ### OS (Please fill the version) : - [x] iOS : - [ ] OSX : - [ ] TVOS : - [ ] WatchOS : ### Installation method: - [ ] Carthage - [ ] CocoaPods - [X] Manually ### Library version: - [ ] head - [ ] v1.0.0 - [ ] v0.6 - [ ] other: (Please fill in the version you are using.) ### Xcode version: - [X] 8.0 (Swift 3.0) - [ ] 8.0 (Swift 2.3) - [ ] 7.3.1 - [ ] other: (Please fill in the version you are using.) - [ ] objective c
kerem 2026-03-03 16:46:43 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ian-mcdowell commented on GitHub (Feb 24, 2017):

I'm having a similar issue. Seems to be caused by this commit.

<!-- gh-comment-id:282241557 --> @ian-mcdowell commented on GitHub (Feb 24, 2017): I'm having a similar issue. Seems to be caused by [this commit.](https://github.com/OAuthSwift/OAuthSwift/commit/e56fafadc8a0db781ab51e45eb0522d70058026c)
Author
Owner

@f-holland commented on GitHub (Feb 24, 2017):

Managed to get it working by just deleting the .urlEncodedString
I just expanded the OAuthSwift.xcodeproj and simply deleted the line in Sources/OAuth2Swift.swift
Command+F to find the queryString and re-ran my project and it's worked!

<!-- gh-comment-id:282242975 --> @f-holland commented on GitHub (Feb 24, 2017): Managed to get it working by just deleting the .urlEncodedString I just expanded the OAuthSwift.xcodeproj and simply deleted the line in Sources/OAuth2Swift.swift Command+F to find the queryString and re-ran my project and it's worked!
Author
Owner

@ian-mcdowell commented on GitHub (Feb 24, 2017):

Yeah I've reverted my project to before that commit and it's working fine. @phimage, let's get this reverted if possible. It's breaking for me specifically with GitHub and GitLab APIs. Haven't tested any more yet, but I'm assuming it's broken for others as well.

<!-- gh-comment-id:282243815 --> @ian-mcdowell commented on GitHub (Feb 24, 2017): Yeah I've reverted my project to before that commit and it's working fine. @phimage, let's get this reverted if possible. It's breaking for me specifically with GitHub and GitLab APIs. Haven't tested any more yet, but I'm assuming it's broken for others as well.
Author
Owner

@phimage commented on GitHub (Feb 24, 2017):

please don't close until issue fixed
yes I will revert (and put a boolean to encode)

<!-- gh-comment-id:282280789 --> @phimage commented on GitHub (Feb 24, 2017): please don't close until issue fixed yes I will revert (and put a boolean to encode)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/OAuthSwift#211
No description provided.