mirror of
https://github.com/jwilsson/spotify-web-api-php.git
synced 2026-04-27 07:55:49 +03:00
[GH-ISSUE #242] IPv6 endpoint with err 403 #174
Labels
No labels
bug
docs
enhancement
enhancement
enhancement
feedback wanted
good first issue
help wanted
help wanted
help wanted
invalid
pull-request
question
question
upstream
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-web-api-php#174
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @onlsol on GitHub (Dec 16, 2021).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/242
Although the endpoints for accounts/api.spotify.com claim to support IPv6 and resolve the DNS with both options, it looks like only the endpoint via IPv4 allows auth and api usage.
Is the issue known and does the PHP library have an option to enforce sticking to the IPv4? As workaround, I'd suggest
@sjerdo commented on GitHub (Dec 16, 2021):
Is this an issue on Ubuntu systems only?
I don't experience any problems with the Spotify API using IPv6 on MacOS.
@jwilsson commented on GitHub (Dec 16, 2021):
Hey!
I'm afraid I cannot reproduce this on neither one of Ubuntu nor macOS. There is however support for setting custom cURL options if you want to.
For example:
@onlsol commented on GitHub (Jan 20, 2022):
@jwilsson resolved by your proposal CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4 which sticks to resolving ipv4 only - even if ipv6 is preferred by the environment though broken or missing DNS records (AAAA) for the sub domains.
thanks!