Pins are posted but assesment fails

  1. Describe the issue briefly
    1/3 tests are failed,i did not understand the actual error but in unittesting.log it is showing the type error
    here the following log code
    < def check_whether_message_is_published(self, message, image_path):

     user_pins = self.get_all_pins_from_board()
     if 'data' not in user_pins:
         print('=' * 100)
         print('\n\n\nPinterest API: Looks you have hit the per hour API limit\n\n\n')
         print('=' * 100)
         return False
  for one_pin in user_pins['data']:

E TypeError: ‘NoneType’ object is not iterable

tests/ TypeError>

  1. 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)
    about morethan 2 hours!!

  2. What is your hypothesis?

please reply as per as possible

Hey. Seems like you’ve hit the API rate limit.

Do refer here Pinterest assessment fails due to hitting the API rate limit to solve the same. :slight_smile:

i also thought that and waited an hour and again submitted
but again it showing the 1/3 test cases failed

please help asap and i already kept more than 3 hours for this reason

Yes, the testcase that failed is your post to Pinterest which wasnt possible as you have exhausted the API limit as you didnt wait for more than hour and ended up trying in less than 45min.

Try getting new ones or wait exactly for an hour or more and then try again. Remember patience is the key to everything!

Head to create new ones if you feel like you’ve waited enough. Remember to create new app_id and then generate a new access_token & board_id to use .

1 Like