singer-io / tap-appsflyer

A Singer.io tap for extracting data from the AppsFlyer API
GNU Affero General Public License v3.0
11 stars 40 forks source link

"iOS installation report" failing with 400 error #1

Closed matt-zach-s closed 5 years ago

matt-zach-s commented 7 years ago

I have copied the full log output from a customer's Appsflyer integration below. Calls to the installs_report API return a bad request error.

INFO Starting sync. Will sync these streams: ['installs', 'in_app_events'] 2017-08-28T19:57:24.662309569Z INFO tap_log - INFO Syncing installs 2017-08-28T19:57:24.669389603Z INFO tap_log - INFO GET https://hq.appsflyer.com/export/id728659261/installs_report/v5?from=2017-06-27+00%3A53&to=2017-07-27+00%3A53&api_token=.................................... 2017-08-28T19:57:25.157900129Z INFO tap_log - INFO STATS: {"status": "succeeded", "duration": 0.48760128021240234, "source": "installs", "http_status_code": 400} 2017-08-28T19:57:25.157944406Z INFO tap_log - ERROR GET https://hq.appsflyer.com/export/id728659261/installs_report/v5?from=2017-06-27+00%3A53&to=2017-07-27+00%3A53&api_token=.................................... [400 - b'400 Bad Request\n\nThe server could not comply with the request since it is either malformed or otherwise incorrect.\n\n\nReport timezone: GMT | Max line count: 200K | Oldest available data: 90 Days ago. Max requests 24 per day per app, 120 per account in total.\n\n'] 2017-08-28T19:57:25.184780307Z DEBUG tap_log - Thread terminating

moganesyan commented 6 years ago

I have a similar issue. The daily sync does not even attempt to pull the installs data and only tries to pull the in_app_events where it fails. Is there any way to make it only get the installs data? Or at the very least try and get that before the in app events?

KAllan357 commented 6 years ago

I believe part of this was fixed in #11

Looks like this could also be a request to add table selection.