question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to purchase - API purchase experienced an error, trying puppeteer purchase

See original GitHub issue

As far as I know this was working fine up until today?

It doesn’t ever actually purcahse the game - any idea why?

Setting timezone: America/New_York
Run on startup: true
Setting timezone: America/New_York
Run on startup: true
[2021-12-16 19:57:45.726 -0500] INFO (44 on a354c2211981): Checking free games for USER@gmail.com
[2021-12-16 19:57:54.633 -0500] INFO (44 on a354c2211981): Successfully refreshed login
user: "USER@gmail.com"
[2021-12-16 19:57:54.636 -0500] INFO (44 on a354c2211981): searchStrategy is `all`: searching for weekly and promotional games
user: "USER@gmail.com"
[2021-12-16 19:57:54.633 -0500] INFO (44 on a354c2211981): Successfully refreshed login
user: "USER@gmail.com"
[2021-12-16 19:57:54.636 -0500] INFO (44 on a354c2211981): searchStrategy is `all`: searching for weekly and promotional games
user: "USER@gmail.com"
[2021-12-16 19:58:09.749 -0500] INFO (44 on a354c2211981): Available free games
user: "USER@gmail.com"
availableGames: [
"Shenmue III",
"Shenmue III - Standard Edition"
]
[2021-12-16 19:58:09.968 -0500] INFO (44 on a354c2211981): Unpurchased free games
user: "USER@gmail.com"
purchasableGames: [
"Shenmue III"
]
[2021-12-16 19:58:09.969 -0500] INFO (44 on a354c2211981): Purchasing Shenmue III
[2021-12-16 19:58:11.728 -0500] ERROR (44 on a354c2211981): There was a problem processing your request. Please try again later.

user: "USER@gmail.com"
[2021-12-16 19:58:11.731 -0500] WARN (44 on a354c2211981): Cannot read property 'map' of undefined
TypeError: Cannot read property 'map' of undefined
at Purchase.confirmOrder (/usr/app/src/purchase.ts:37:82)
at Purchase.purchase (/usr/app/src/purchase.ts:155:16)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at redeemAccount (/usr/app/src/index.ts:31:11)
at async Promise.all (index 0)
at main (/usr/app/src/index.ts:58:5)
[2021-12-16 19:58:11.796 -0500] WARN (44 on a354c2211981): API purchase experienced an error, trying puppeteer purchase

[2021-12-16 19:58:17.999 -0500] WARN (44 on a354c2211981): Error from hCaptcha get_cookie request, continuing without hCaptcha accessibility cookies

status: 401
errorBody: {
"status": "error"

}
[2021-12-16 19:58:30.769 -0500] WARN (44 on a354c2211981): Could not find talon_frame_checkout_free_prod
Error: Could not find talon_frame_checkout_free_prod

at PuppetPurchase.waitForHCaptcha (/usr/app/src/puppet/purchase.ts:113:31)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at PuppetPurchase.purchaseShort (/usr/app/src/puppet/purchase.ts:174:29)
at redeemAccount (/usr/app/src/index.ts:39:9)
at async Promise.all (index 0)
at main (/usr/app/src/index.ts:58:5)
[2021-12-16 19:58:31.371 -0500] INFO (44 on a354c2211981): Done purchasing Shenmue III
Run once: false
Setting cron schedule as 17 01 * * *

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
claabscommented, Dec 17, 2021

Yeah Epic changed a lot. I’ll have to figure out what to update and what to ignore.

0reactions
claabscommented, Dec 17, 2021

Pulled the latest docker image, still getting this error. Thought posting here again would make the most sense, hope that’s fine…

This is identical to #194. Please continue this there. There should have been an HTML file output by the error as well. I’ll need that to create the query to click the accept cookies button.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to launch chrome #807 - puppeteer/puppeteer - GitHub
I am trying to run puppeteer from PCF. I get the below error: (node:31) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection ...
Read more >
puppeteer throw error "UnhandledPromiseRejectionWarning ...
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not...
Read more >
[AMA] I wrote a bot to purchase Ubiquiti gear - Reddit
I was so annoyed by the G4 Doorbell Pro being nearly always out of stock that I wrote a bot to automatically purchase...
Read more >
Frequently Asked Questions - browserless docs
Below is a list of commonly asked questions and helpful hints to get up and running with browserless. If you don't see an...
Read more >
Basic Web Scraping with Puppeteer - Darren Lester
Web scraping NS&I using Google's Puppeteer Node library. ... winningBond, holding, area, bondValue, purchased ] = dataArray.map(td => td.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found