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.

OrderBy does not work

See original GitHub issue

Hi, thanks for making this very great library.

I tried to line them in reverse order, but order_by didn’t work.

account = Account((config['client_id'], config['client_secret']))
mailbox = account.mailbox()
inbox = mailbox.inbox_folder()
for message in inbox.get_messages(order_by='DateTimeReceived desc'):
    print(message)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://graph.microsoft.com/v1.0/me/mailFolders/Inbox/messages?%24top=25&%24orderby=DateTimeReceived+desc | Error Message: OrderBy not supported.

The reason seems to be that space is encoded into +. I think it will work if it becomes %20. I tried, but I didn’t know how to fix it.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
janscascommented, Jun 18, 2019

I think it’s “receivedDateTime”

1reaction
aufbakanleitungcommented, Jun 18, 2019

Ah too bad, because I’m still struggling to retrieve the e-mails in chronological order (FiFo). I’ll just open a new ticket then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# list.OrderBy not working at all? [duplicate] - Stack Overflow
I have a hard time understanding how the list.OrderBy works and I don't understand what I'm doing wrong... I think it's something easy...
Read more >
Order By not working - Laracasts
Yes, as OrderBy does not exists. Try with sortBy . https://laravel.com/docs/5.8/collections#method-sortby. Or use the query for ...
Read more >
elements sorting (Order by) does not work for me
Hi,. i have the latest version. Is it possible that the “Order By” function does not work? I have tried it on two...
Read more >
Laravel/Eloquent Model query 'orderBy' does not ... - GitHub
Laravel/Eloquent Model query 'orderBy' does not seem to always work when the table contains a mysql geometry column.
Read more >
SQL SERVER – ORDER BY Does Not Work – Limitation of the ...
Order By clause does not work in View. I agree with all of you who say that there is no need of using...
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