The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December. Read our blog post for more info about this change.
Found this content helpful? Log in or sign up to leave a like!
I don't know if anyone else has had this issue, but I had it and solved it, so I thought I would share.
My php scripts that used the Canvas API to do minor tasks failed. I couldn't figure out why. The same commands worked in the Live API and in Postman, but not when I tried it with php. It turned out I forgot all about the TLS upgrade. Telling curl to use TLS 1.2 fixed the issue. In php, that is done like so:
curl_setopt($ch, CURLOPT_SSLVERSION, 6); //Force requests to use TLS 1.2
Hope that helps someone out there!
-S
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in