I am working on the lab. In exercise 2 I am getting this error:
TypeError: request() got an unexpected keyword argument ‘access_token’
When I make the first request.get(**kwargs) call. I have tried to debug, but cannot get past this error. Can anyone help?
Hi @Leland_Grant , this can be a tricky lab, great job trying to debug it on your own. Which line of code are you referring to?
- If it’s the
response = None(**None)
line, I suggest you take another look at the comment right before this, it gives you a hint about which function to use on the **kwargs arguments
- If it’s another line of code within this exercise, then my hint is that the argument should not be **kwargs (only the line
response = None(**None)
uses the **kwargs argument. Another suggestion is to look into the response.get()
method, you might find that helpful for this exercise.
I hope this helps
1 Like
Hi @jessica-dlai , Thank you for the hint. I will restart the lab in the morning. I am sure that I should be calling endpoints_request(). It is fun to try to debug when we run into issues in the lab. At least I learn more. Thank you very much!
Hi @Leland_Grant , I saw that in your original message you mentioned request.get(**kwargs), that’s why I suggested you look at the comment before this line again. But if you actually used endpoint_request for that line, then it should be correct. After you try the lab again, let me know if you still run into any issues.
Good luck with the lab and happy learning
Hi @jessica-dlai , I was able to get the lab working yesterday morning. Thank you for the hint!
1 Like