singer-io / tap-facebook

Singer.io tap for Facebook Marketing API
GNU Affero General Public License v3.0
110 stars 141 forks source link

Periodically getting the following error: `SingerSyncError GET: 400 Message: Error accessing adreport job.` #193

Open willhasgithub opened 2 years ago

willhasgithub commented 2 years ago

I am periodically getting the following error upon extraction: SingerSyncError GET: 400 Message: Error accessing adreport job.

After an initial look-through troubleshooting the error I think it may have to do with the while condition being met when the async job is not completely done.

A stackoverflow thread says it better than I can.

This thread implies that status != "Job Completed" needs to be changed to status != "Job Completed" or percent_completion < 100 for the following line.

Again, this is an initial take, but if that change is made, you may consider updating this condition as well.