Closed git-tyl closed 2 years ago
Could you post amazonErrorPage.html
from the logs folder? Also, refer to the issue #112
amazon.log 'Unable to get information' ITEM_INFO: { "url": "https://www.amazon.com/dp/B097S5SQ3Z", "notificationSent": false, "shouldSendNotification": true, "info": {}, "title": "EVGA GeForce RTX 3080 XC3 Ultra Gaming, 10G-P5-3885-KL, 10GB GDDR6X, iCX3 Cooling, ARGB LED, Metal Backplate, LHR", "image": "", "inventory": false }
@git-tyl Sorry. I totally forgot about this. Does this issue still happen? Do you know if it happened more than once?
Nevertheless, I have fixed the issue and I'll release it in the next update. Lmk if you need it right away.
Hello, did you fixed this issue ? Because It stills happening on my side. Any idea ?
@vincentdchn Hello. The issue isn't major. I have fixed it but haven't released it. How often does it happen to you?
@Prince25 It happens at every check. I tried with links with all the supported store but I keep getting this error. Tried on Mac OS and Ubuntu 20.04
Will look into it. Could you post your amazon.log
and amazonErrorPage.html
if you have it? It'll make it much faster to fix. Thanks!
Of course ! Thanks a lot :)
amazon.log
:
'Unable to get information'
ITEM_INFO: {
"url": "https://www.amazon.fr/dp/B096N6XBJ6",
"notificationSent": false,
"shouldSendNotification": true,
"info": {},
"title": "",
"inventory": false
}
And amazonErrorPage.html
:
<!DOCTYPE html>
<!--[if lt IE 7]> <html lang="fr" class="a-no-js a-lt-ie9 a-lt-ie8 a-lt-ie7"> <![endif]-->
<!--[if IE 7]> <html lang="fr" class="a-no-js a-lt-ie9 a-lt-ie8"> <![endif]-->
<!--[if IE 8]> <html lang="fr" class="a-no-js a-lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="a-no-js" lang="fr"><!--<![endif]--><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title dir="ltr">Amazon.fr</title>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="https://images-na.ssl-images-amazon.com/images/G/01/AUIClients/AmazonUI-3c913031596ca78a3768f4e934b1cc02ce238101.secure.min._V1_.css">
<script>
if (true === true) {
var ue_t0 = (+ new Date()),
ue_csm = window,
ue = { t0: ue_t0, d: function() { return (+new Date() - ue_t0); } },
ue_furl = "fls-eu.amazon.fr",
ue_mid = "A13V1IB3VIYZZH",
ue_sid = (document.cookie.match(/session-id=([0-9-]+)/) || [])[1],
ue_sn = "opfcaptcha.amazon.fr",
ue_id = 'KY9CZK6P6T2DCCM53VE1';
}
</script>
</head>
<body>
<!--
To discuss automated access to Amazon data please contact api-services-support@amazon.com.
For information about migrating to our APIs refer to our Marketplace APIs at https://developer.amazonservices.fr/ref=rm_c_sv, or our Product Advertising API at https://partenaires.amazon.fr/gp/advertising/api/detail/main.html/ref=rm_c_ac for advertising use cases.
-->
<!--
Correios.DoNotSend
-->
<div class="a-container a-padding-double-large" style="min-width:350px;padding:44px 0 !important">
<div class="a-row a-spacing-double-large" style="width: 350px; margin: 0 auto">
<div class="a-row a-spacing-medium a-text-center"><i class="a-icon a-logo"></i></div>
<div class="a-box a-alert a-alert-info a-spacing-base">
<div class="a-box-inner">
<i class="a-icon a-icon-alert"></i>
<h4>Saisissez les caractères que vous voyez ci-dessous</h4>
<p class="a-last">Désolés, il faut que nous nous assurions que vous n'êtes pas un robot. Pour obtenir les meilleurs résultats, veuillez vous assurer que votre navigateur accepte les cookies.</p>
</div>
</div>
<div class="a-section">
<div class="a-box a-color-offset-background">
<div class="a-box-inner a-padding-extra-large">
<form method="get" action="/errors/validateCaptcha" name="">
<input type=hidden name="amzn" value="W68YyklkE0SdZtL8gxgN1w==" /><input type=hidden name="amzn-r" value="/dp/B096N6XBJ6" />
<div class="a-row a-spacing-large">
<div class="a-box">
<div class="a-box-inner">
<h4>Saisissez les caractères que vous voyez dans cette image :</h4>
<!-- For automated access to price change or offer listing change events,
please refer to the MWS Subscription API:
https://developer.amazonservices.fr/gp/mws/api.html/277-5993977-7749460?ie=UTF8§ion=subscriptions&group=subscriptions&version=latest
-->
<div class="a-row a-text-center">
<img src="https://images-na.ssl-images-amazon.com/captcha/ahkfsmoa/Captcha_rctcwswjeq.jpg">
</div>
<div class="a-row a-spacing-base">
<div class="a-row">
<div class="a-column a-span6">
</div>
<div class="a-column a-span8 a-span-last a-text-right">
<a onclick="window.location.reload()">Essayez une autre image</a>
</div>
</div>
<input autocomplete="off" spellcheck="false" placeholder="Saisissez les caractères suivants" id="captchacharacters" name="field-keywords" class="a-span12" autocapitalize="off" autocorrect="off" type="text">
</div>
</div>
</div>
</div>
<div class="a-section a-spacing-extra-large">
<div class="a-row">
<span class="a-button a-button-primary a-span12">
<span class="a-button-inner">
<button type="submit" class="a-button-text">Continuer les achats</button>
</span>
</span>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="a-divider a-divider-section"><div class="a-divider-inner"></div></div>
<div class="a-text-center a-spacing-small a-size-mini">
<a href="https://www.amazon.fr/gp/help/customer/display.html/ref=footer_cou?ie=UTF8&nodeId=548524">Conditions générales de vente</a>
<span class="a-letter-space"></span>
<span class="a-letter-space"></span>
<span class="a-letter-space"></span>
<span class="a-letter-space"></span>
<a href="https://www.amazon.fr/gp/help/customer/display.html/ref=footer_privacy?ie=UTF8&nodeId=3329781">Vos informations personnelles</a>
</div>
<div class="a-text-center a-size-mini a-color-secondary">
© 1996-2015, Amazon.com, Inc. ou ses filiales.
<script>
if (true === true) {
document.write('<img src="https://fls-eu.amaz'+'on.fr/'+'1/oc-csi/1/OP/requestId=KY9CZK6P6T2DCCM53VE1&js=1" />');
};
</script>
<noscript>
<img src="https://fls-eu.amazon.fr/1/oc-csi/1/OP/requestId=KY9CZK6P6T2DCCM53VE1&js=0" />
</noscript>
</div>
</div>
<script>
if (true === true) {
var head = document.getElementsByTagName('head')[0],
prefix = "https://images-eu.ssl-images-amazon.com/images/G/01/csminstrumentation/",
elem = document.createElement("script");
elem.src = prefix + "csm-captcha-instrumentation.min.js";
head.appendChild(elem);
elem = document.createElement("script");
elem.src = prefix + "rd-script-6d68177fa6061598e9509dc4b5bdd08d.js";
head.appendChild(elem);
}
</script>
</body></html>
@vincentdchn Unfortunately, that error isn't because of the code. Amazon is blocking your request. Consider using proxies. Check these posts for more information: https://github.com/Prince25/StockAlertBot/issues/112#issuecomment-873488165 and https://github.com/Prince25/StockAlertBot/issues/83#issuecomment-820612705. You can try Webshare.io.
Nevertheless, I have added error messages for blocked non-proxy requests in the upcoming update.
@Prince25 Oh ok I see ! Thanks for your fast reply though :)
https://www.amazon.com/dp/B097S5SQ3Z
Error occured for AMAZON while checking the item, gives an error
Writing HTML to logs/amazonErrorPage.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.