StockAlertBot icon indicating copy to clipboard operation
StockAlertBot copied to clipboard

Target API calls fail

Open rareheirs opened this issue 1 year ago • 0 comments

Describe the bug Target stock alert fails due to API call being invalid. See Error log below. It seems that the API call to resky.target.com does not have valid key-values. It's possible that an earlier call which was needed to populate these is not resolving. When entering the API call directly through my browser, I see that they return Server 502 or Forbidden errors.

Logs and Screenshots Please upload any related logs from the logs folder. If available, upload the html file related to the bug from the log folder. If applicable, upload config.json from the config folder. If applicable, add screenshot of the console to help explain your problem.

[ERROR] 01:43:25: pm: Error getting page for url: https://api.target.com/shipt_deliveries/v1/stores?zip=98052&key=9f36aeafbe60771e321a7cc95a78140772ab3e96. [ERROR] 01:43:25: pm: Error getting page for url: https://redsky.target.com/redsky_aggregations/v1/web/pdp_fulfillment_v1?key=9f36aeafbe60771e321a7cc95a78140772ab3e96&tcin=undefined&has_store_positions_store_id=false&store_id=undefined&store_positions_store_id=undefined&scheduled_delivery_store_id=undefined&pricing_store_id=undefined. [ERROR] 01:43:25: pm: Error occured for TARGET while checking url: <REMOVING URL FOR PRIVACY> Writing HTML to logs/targetErrorPage.html. This is usually not a problem but if this error appears frequently, please report the error with the log and html files to GitHub.

Platform Information

  • OS: [e.g. Windows 10]
  • Node version node -v: [e.g. v14.15.2]

Additional context Add any other context about the problem here.

rareheirs avatar Aug 28 '22 20:08 rareheirs