Title: Library fails to construct correct request URLs on Windows. · Issue #30 · hyperwallet/python-sdk · GitHub
Open Graph Title: Library fails to construct correct request URLs on Windows. · Issue #30 · hyperwallet/python-sdk
X Title: Library fails to construct correct request URLs on Windows. · Issue #30 · hyperwallet/python-sdk
Description: When making a request on a windows machine, the URL of the request is formatted incorrectly. Here's the request for GET user: -----------REQUEST----------- GET https://uat-api.paylution.com/rest/v3/users\usr-00000000-0000-0000-0000-000...
Open Graph Description: When making a request on a windows machine, the URL of the request is formatted incorrectly. Here's the request for GET user: -----------REQUEST----------- GET https://uat-api.paylution.com/rest/v3...
X Description: When making a request on a windows machine, the URL of the request is formatted incorrectly. Here's the request for GET user: -----------REQUEST----------- GET https://uat-api.paylution.com/res...
Opengraph URL: https://github.com/hyperwallet/python-sdk/issues/30
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Library fails to construct correct request URLs on Windows.","articleBody":"When making a request on a windows machine, the URL of the request is formatted incorrectly. Here's the request for GET user:\r\n\r\n```\r\n-----------REQUEST-----------\r\nGET https://uat-api.paylution.com/rest/v3/users%5Cusr-00000000-0000-0000-0000-000000000000\r\nUser-Agent: Hyperwallet Python SDK v1.3.0\r\nAccept: application/json\r\nContent-Type: application/json\r\nAuthorization: Basic {auth}\r\n```\r\n\r\nThe request should look like this:\r\n\r\n```\r\n-----------REQUEST-----------\r\nGET https://uat-api.paylution.com/rest/v3/users/usr-00000000-0000-0000-0000-000000000000\r\nUser-Agent: Hyperwallet Python SDK v1.3.0\r\nAccept: application/json\r\nContent-Type: application/json\r\nAuthorization: Basic {auth}\r\n```\r\n\r\nThe culprit is line 117 of api.py\r\n\r\n```\r\nresponse = self.apiClient.doGet(\r\n os.path.join('users', userToken)\r\n)\r\n```\r\n\r\nIt should look like:\r\n\r\n`\r\nresponse = self.apiClient.doGet('users/' + userToken)\r\n`\r\n\r\nI would make a PR but this bug happens 54 times and is a part of most requests.","author":{"url":"https://github.com/colleen-love","@type":"Person","name":"colleen-love"},"datePublished":"2019-12-06T20:12:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/30/python-sdk/issues/30"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:58cf4d94-4818-3ea7-9552-a9f080015d9d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D5E6:1ADF58:C1DD45:F88D7A:6976C842 |
| html-safe-nonce | ef6d1e5e3f3a1c3df198ecd22d23a2807f0ef6570aadf607c45fd0e62ea76f54 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENUU2OjFBREY1ODpDMURENDU6Rjg4RDdBOjY5NzZDODQyIiwidmlzaXRvcl9pZCI6IjI4MzkzMTc0MTk4OTU3MzYzODYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e5f35c698d6546b390adfc0ff9cd08af99dd5bfa4c6e0f19ab4806c9c1895a9d |
| hovercard-subject-tag | issue:534236776 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/hyperwallet/python-sdk/30/issue_layout |
| twitter:image | https://opengraph.githubassets.com/40184d5f3641287fdb7fa6063082af6d38bfa06f3e8de8439e3cf5da1dd01154/hyperwallet/python-sdk/issues/30 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/40184d5f3641287fdb7fa6063082af6d38bfa06f3e8de8439e3cf5da1dd01154/hyperwallet/python-sdk/issues/30 |
| og:image:alt | When making a request on a windows machine, the URL of the request is formatted incorrectly. Here's the request for GET user: -----------REQUEST----------- GET https://uat-api.paylution.com/rest/v3... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | colleen-love |
| hostname | github.com |
| expected-hostname | github.com |
| None | 032152924a283b83384255d9489e7b93b54ba01da8d380b05ecd3953b3212411 |
| turbo-cache-control | no-preview |
| go-import | github.com/hyperwallet/python-sdk git https://github.com/hyperwallet/python-sdk.git |
| octolytics-dimension-user_id | 14006685 |
| octolytics-dimension-user_login | hyperwallet |
| octolytics-dimension-repository_id | 65580134 |
| octolytics-dimension-repository_nwo | hyperwallet/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 65580134 |
| octolytics-dimension-repository_network_root_nwo | hyperwallet/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5b577f6be6482e336e3c30e8daefa30144947b17 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width