wp-local-docker-v2
wp-local-docker-v2 copied to clipboard
cURL and wp_remote_get() for graph.instagram.com: Segmentation error
Describe the bug
calling wp_remote_get( 'https://graph.instagram.com/' )
ends in a blank page (no HTML in source)
Steps to Reproduce
- 10updocker shell
2.run
curl --location --request GET 'https://graph.instagram.com/'
- You will get a
Segmentation fault
message
Expected behavior
cURL should return the body from that URL (https://graph.instagram.com/): "Sorry, this content isn't available right now"
Screenshots
Environment information
-
Device: MacBook Pro M1
-
OS: macOS 12.1 (21C52)
-
WordPress version: 5.8.1 / 5.8.2
Additional context
Found the following:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=989604
https://github.com/docker/for-mac/issues/5846
Adding --tls-max 1.2 worked for me on the command line inside the php-fpm container
See: