papsphilip Posted February 13, 2021 Share Posted February 13, 2021 i am trying to use requests inside a python node when i hit the save button an error message keeps popping up Traceback (most recent call last): File "Sop/python/save", line 1, in <module> File "<string>", line 47, in Save File "<string>", line 21, in get_img NameError: global name 'response' is not defined Quote Link to comment Share on other sites More sharing options...
anim Posted February 13, 2021 Share Posted February 13, 2021 is it because you havent defined 'response' variable but trying to use it? I'm not familiar with requests module, but your code proably should be response = requests.get(url) instead of just requests.get(url) Quote Link to comment Share on other sites More sharing options...
papsphilip Posted February 14, 2021 Author Share Posted February 14, 2021 23 hours ago, anim said: is it because you havent defined 'response' variable but trying to use it? I'm not familiar with requests module, but your code proably should be response = requests.get(url) instead of just requests.get(url) total noob mistake, thank you very much. still learning Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.