Describe the issue briefly
I have implemented module 3 the image is being posted in Pinterest but still the assessment is failed.
The other two test cases are passed.
How much time have you spent debugging this issue?
(Please spend at least 15 minutes to resolve the issue on your own before posting a new topic here)
Approximately 1.5 hrs+
What is your hypothesis?
The retrieving of board id and token or the path to access_token.sh may have some issue which I want to get resolved.
There is syntax-issue in your code in params. Use facebook_post.py as a reference you will easily pass the assessment. There are just little changes in the pinterest_post.py and facebook_post.py. And check your pinterest link using Pinterest API Explorer.
Is your issue resolved?
No, I am trying to make the changes but still that assessment fails.
The pinterest link seems wrong to me. Please use Pinterest API Explorer to check the end point. And you are not using one parameter in your code. Find out which parameter is missing and add it in your code.
Sir, if the Pinterest link is wrong then why the image is being posted and I have added one parameter but still the same.
I am trying to find what exactly I am missing.
have you checked unittesting.log file ?
this error might happen due to reaching api limit of pinterest, if it was the case then try after an hour.
Yes, I have checked that file which says that I have path error which I am not sure of.
Decribe the error that’s been in unittesting file
No such file or directory.
The path to access_token.sh which is same for both facebook_post.py and pinterest_post.py but still this error it is showing.
Check the code with specificed error line number
In pinterest_post.py while specifying the parameter with access_token it pops up an authentication error and without access_tokens it is being posted
Is your issue resolved?
No my issue is not resolved @Saurav_Crio.Do
I have checked in API explorer I am getting the response correctly.
Can you help me on what things to look at?
There is a problem in get_access_token definition. Use facebook_post.py as a reference to edit your code. And please don’t hardcode the path.
But in facebook_post.py “access_token = os.getenv(‘PWD’) + ‘/access_tokens.sh’” is there but access_tokens.sh file is not there in the present directory so indtead of “PWD” I am using another way to get the path.
Even facebook_post.py is showing the same error so referencing that also leads to an error.
When you passed the first module, I think you didn’t change anything in get_access_token, right?
No I did not change anything at that time @Saurav_Crio.Do
Was there something to change?
That means pwd was working, so don’t change pwd in pinterest also.