Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Error While Extracting the Amazon Order Details #25

Closed
3 of 4 tasks
Krunal-Thakkar-17 opened this issue Nov 7, 2024 · 4 comments
Closed
3 of 4 tasks
Labels
bug Something isn't working more-info-needed More information is required to be able to troubleshoot this issue stale Issue will be closed automatically if no further activity occurs

Comments

@Krunal-Thakkar-17
Copy link

Krunal-Thakkar-17 commented Nov 7, 2024

Acknowledgements

  • I have written a descriptive issue title
  • I have searched Issues to see if the bug has already been reported
  • I have searched Stack Overflow to ensure the issue I'm experiencing has not already been discussed
  • If possible, I have enabled debug mode and am attaching relevant console logs and HTML files

Operating System

Ubuntu

Python Version

3.10.12

amazon-orders Version

3.2.0

Describe the Bug

Hello Team,

While extracting the amazon order details getting error,

  ___                                   _____         _
 / _ \                                 |  _  |       | |
/ /_\ \_ __ ___   __ _ _______  _ __   | | | |_ __ __| | ___ _ __ ___
|  _  | '_ ` _ \ / _` |_  / _ \| '_ \  | | | | '__/ _` |/ _ \ '__/ __|
| | | | | | | | | (_| |/ / (_) | | | | \ \_/ / | | (_| |  __/ |  \__ \\
\_| |_/_| |_| |_|\__,_/___\___/|_| |_|  \___/|_|  \__,_|\___|_|  |___/
=======================================================================
                                                               v3.2.0

Info: The --username and --password flags are ignored because a previous session still exists. If you would like to reauthenticate, call the `logout` command first.

-----------------------------------------------------------------------
Order History for 2024, all pages
-----------------------------------------------------------------------

Info: Fetching order history, this might take a minute ...
Usage: amazon-orders history [OPTIONS]
Try 'amazon-orders history --help' for help.

Error: When building Item, field for selector `["[data-component='itemTitle']", '.yohtmlc-item a', '.yohtmlc-product-title']` was None, but this is not allowed

image

Steps to Reproduce

Just following the readme guide.

Expected Behavior

No response

@Krunal-Thakkar-17 Krunal-Thakkar-17 added the bug Something isn't working label Nov 7, 2024
@alexdlaird alexdlaird added more-info-needed More information is required to be able to troubleshoot this issue and removed more-info-needed More information is required to be able to troubleshoot this issue labels Nov 7, 2024
Copy link

github-actions bot commented Nov 7, 2024

Thanks for submitting your issue! It looks like there is not enough detail given for us to be able to troubleshoot.

Because Amazon can render slightly different versions of its pages to each user, we rely extensively on users troubleshooting their own issues and submitting fixes via PRs. There is simply no way for us to resolve many of these edge case issues ourselves, since one Amazon account cannot necessarily replicate another Amazon account's exact same experience. We hope you'll start working on a PR for us to evaluate!

If you want us to troubleshoot the issue, we need more information. To investigate issues, we rely on user-submitted examples of the HTML rendered for pages from your account. Follow the steps in the docs to enable debug mode, attach relevant console logs, and upload relevant HTML files to this ticket (remember to obfuscate any sensitive data first).

Once we have more information, or a PR to evaluate, we will follow up further on this ticket. Thanks!

@alexdlaird
Copy link
Owner

Also, is this just an issue with the newly release version of amazon-orders, or do you also see the issue if you roll back to a previous version?

@Krunal-Thakkar-17
Copy link
Author

Krunal-Thakkar-17 commented Nov 8, 2024

I have tried previous versions as well, getting the same errors. @alexdlaird

=======================================================================


/ _ \ | _ | | |
/ /\ _ __ ___ __ _ _______ _ __ | | | | __ | | ___ _ __ ___
| _ | '
_ \ / _ |
/ _ | '_ \ | | | | '/ _` |/ _ \ '/ |
| | | | | | | | | (| |/ / () | | | | \ _/ / | | (| | _/ | _ \
_| |
/| || ||_,/
_/|| || _/|| _,|___|| |___/

                                                           v3.1.0

Order History for 2024, all pages

Info: Fetching order history, this might take a minute ...
Usage: amazon-orders history [OPTIONS]
Try 'amazon-orders history --help' for help.

Error: When building Item, field for selector ["[data-component='itemTitle']", '.yohtmlc-item a', '.yohtmlc-product-title'] was None, but this is not allowed.


=======================================================================


/ _ \ | _ | | |
/ /\ _ __ ___ __ _ _______ _ __ | | | | __ | | ___ _ __ ___
| _ | '
_ \ / _ |
/ _ | '_ \ | | | | '/ _` |/ _ \ '/ |
| | | | | | | | | (| |/ / () | | | | \ _/ / | | (| | _/ | _ \
_| |
/| || ||_,/
_/|| || _/|| _,|___|| |___/

                                                           v2.0.1

Order History for 2024, all pages

Info: Fetching order history, this might take a minute ...
Usage: amazon-orders history [OPTIONS]
Try 'amazon-orders history --help' for help.

Error: When building Item, field for selector ['.yohtmlc-item a', '.yohtmlc-product-title', "[data-component='itemTitle']"] was None, but this is not allowed.

Copy link

This issue is stale because it has remained open with no further activity on it. Comment with additional context or the issue will be closed automatically. Thank you for your contribution!

@github-actions github-actions bot added the stale Issue will be closed automatically if no further activity occurs label Nov 16, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working more-info-needed More information is required to be able to troubleshoot this issue stale Issue will be closed automatically if no further activity occurs
Projects
None yet
Development

No branches or pull requests

2 participants