-
Notifications
You must be signed in to change notification settings - Fork 457
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
gmail.get.visible_emails() returning wrong result in "Primary" tab #320
Comments
I updated to the latest updates because the changelog says the visible_emails was fixed. Tried it but it still the same plus it generates an exception when you are in a different page. |
Thanks for registering an issue. Could you provide more details about the errors you are encountering? Basically a stack-trace or something, which makes it a bit easier to narrow down the error? @avzabr: I think you were the last one to meddle around these parts? Any ideas on what's going on here? |
Without more data it's hard dig deeper into this one. With that said...
I did just find a parsing error which has been introduced recently. I'm guessing this could be related to that error? Can you update to latest and see if that fixes the exceptions for you? |
This PR attempts to solve this issue: #344 |
@josteink @Fatal-Errol Changes are available for review at this pull request (my fork of gmail.js): @Fatal-Errol Please let us know if this solves the issue for you. |
Working on a feature-branch for this issue, I've encountered and error in
From what I can tell, the error is caused by the server-response being a HTML-formatted error-message, meaning we're probably not generating a good XHR-request in the first place. Based on that I'll see if I can find out what goes wrong and where. |
Upon further testing, this only happens when I'm on the wrong page. Should we catch this error and suggest a resolution? |
@josteink What do you mean by a |
If I were looking at a specific email-thread and calling But if/when things fail (and it might be due to API misuse), we might want to make it more explicit what scenarios are supported. Agreed? |
Yep, sounds correct. But it looks like the fix is for a different issue, not related to this thread: incorrect results set at primary tab returned from |
I tried opening a "primary" inbox and from what I could tell I was getting the correct results there, with no exceptions. I must admit on this test-account I don't have enough email (and even less priority email ) to generate multiple-pages though... |
Since I haven't heard anything new on this issue, I'm closing it. Please re-open it if you still have an issue you need resolved. |
Calling gmail.get.visible_emails() when in the primary tab returns 350 items and ignores the pagination set so moving from page to page always returns the same result. On top of that, the 350 items are a mixture of contents from the other tab ('social' etc), 70 items from primary, 70 from social etc. The other tabs and pages are working fine.
Thanks
The text was updated successfully, but these errors were encountered: