wp-local-docker-v2 icon indicating copy to clipboard operation
wp-local-docker-v2 copied to clipboard

cURL and wp_remote_get() for graph.instagram.com: Segmentation error

Open pabamato opened this issue 3 years ago • 3 comments

Describe the bug

calling wp_remote_get( 'https://graph.instagram.com/' ) ends in a blank page (no HTML in source)

Steps to Reproduce

  1. 10updocker shell 2.run curl --location --request GET 'https://graph.instagram.com/'
  2. 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: image

pabamato avatar Dec 23 '21 17:12 pabamato