I am using odoo v12 I have to try to simple request to get any simple URL using request class but not retrieve any result such as I using.
import requests
r = requests.get("https://itstrianglemobile.com/images/phones/iphone-xr/iPhone-xr-1.jpg")
when I execute that code using odoo it is not working. but when I try to execute using terminal it is working. I have no idea about that.
Are you getting any error message? or what is the response you are getting
No, I am not getting an error message from that but using terminal it gives me a status code as 200 and also url content.
We have tried the same over here, from the Odoo as well as terminal and seems fine. So the execution stops on this call? or rest of the code after this call is not getting executed?
I also check the same thing with the other odoo v12 server and it working perfectly but my actual server it is not working I have no idea that why odoo behavior like this. I also check the request version for my local and my actual server is same.