-
Hey Prince, I seem to be getting an error with Walmart and the log says: Error: Request failed with status code 412 This is with this URL : https://www.walmart.com/ip/Xbox-Series-X/443574645 Target is still throwing an error: TypeError: Cannot read property 'textContent' of undefined on URL : https://www.target.com/p/xbox-series-x-console/-/A-80790841 Can you see if you can try to replicate ? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hi again. Is the Walmart error occurring all the time? Are you using proxies? |
Beta Was this translation helpful? Give feedback.
-
No proxies.. it seems to happen from the start of the check.
From: Prabhjot Singh ***@***.***>
Sent: Wednesday, March 31, 2021 3:40 AM
To: Prince25/StockAlertBot ***@***.***>
Cc: xmpierce1 ***@***.***>; Author ***@***.***>
Subject: Re: [Prince25/StockAlertBot] Walmart and Target Issues (#64)
Hi again. Is the Walmart error occurring all the time? Are you using proxies?
I'll run it on my end tomorrow.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#64 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AR3YQOBAK2KCBDPLVZYRC4DTGLGV3ANCNFSM42DPMRAQ> . <https://github.com/notifications/beacon/AR3YQOELIYUSSMKR2EFEVVLTGLGV3A5CNFSM42DPMRA2YY3PNVWWK3TUL52HS4DFWFCGS43DOVZXG2LPNZBW63LNMVXHJKTDN5WW2ZLOORPWSZGOAAEGUZQ.gif>
|
Beta Was this translation helpful? Give feedback.
-
I ran Walmart for some times and it's working correctly for me: else options = {
headers: {
'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'accept-language': 'en-US,en;q=0.9',
'cache-control': 'no-cache',
'pragma': 'no-cache',
'sec-ch-ua-mobile': '?0',
'sec-fetch-dest': 'document',
'sec-fetch-mode': 'navigate',
'sec-fetch-site': 'none',
'sec-fetch-user': ?1,
'service-worker-navigation-preload': 'true',
'upgrade-insecure-requests': '1',
'User-Agent': USER_AGENTS[Math.floor(Math.random() * USER_AGENTS.length)]
}
} As for Target, it also works just fine for me: |
Beta Was this translation helpful? Give feedback.
-
I will try it.. It really seems cosmetic for Target become PS5 dropped this morning and the alart worked perfect.. Walmart is an odd one though.
From: Prabhjot Singh ***@***.***>
Sent: Wednesday, March 31, 2021 6:32 PM
To: Prince25/StockAlertBot ***@***.***>
Cc: xmpierce1 ***@***.***>; Author ***@***.***>
Subject: Re: [Prince25/StockAlertBot] Walmart and Target Issues (#64)
I ran Walmart for some times and it's working correctly for me:
<https://user-images.githubusercontent.com/28243638/113217939-85295d00-9233-11eb-9e4b-cb0c510a19f4.png>
Status code 412 <http://man.hubwiz.com/docset/HTTP.docset/Contents/Resources/Documents/developer.mozilla.org/en-US/docs/Web/HTTP/Status/412.html> "indicates that access to the target resource has been denied." There could be many reasons for this. Are you able to access Walmart in a browser just fine? You can try replacing line 56 in Walmart.js with the following and see if that helps:
else options = {
headers: {
'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'accept-language': 'en-US,en;q=0.9',
'cache-control': 'no-cache',
'pragma': 'no-cache',
'sec-ch-ua-mobile': '?0',
'sec-fetch-dest': 'document',
'sec-fetch-mode': 'navigate',
'sec-fetch-site': 'none',
'sec-fetch-user': ?1,
'service-worker-navigation-preload': 'true',
'upgrade-insecure-requests': '1',
'User-Agent': USER_AGENTS[Math.floor(Math.random() * USER_AGENTS.length)]
}
}
As for Target, it also works just fine for me:
<https://user-images.githubusercontent.com/28243638/113218797-02a19d00-9235-11eb-8ecb-6a85fc214bd4.png>
But I've pushed an update ( <786f99c> 786f99c) which should keep it from giving a random error. See if it shows product info error and how often.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#64 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AR3YQOGZY7IG5YXSYBRC663TGOPFZANCNFSM42DPMRAQ> . <https://github.com/notifications/beacon/AR3YQODTBDIMXEC2CSUMFQLTGOPFZA5CNFSM42DPMRA2YY3PNVWWK3TUL52HS4DFWFCGS43DOVZXG2LPNZBW63LNMVXHJKTDN5WW2ZLOORPWSZGOAAEHQAA.gif>
|
Beta Was this translation helpful? Give feedback.
I ran Walmart for some times and it's working correctly for me:
Status code 412 "indicates that access to the target resource has been denied." There could be many reasons for this. Are you able to access Walmart in a browser just fine? You can try replacing line 56 in
Walmart.js
with the following and see if that helps: