Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Collection Types - Filters (500 internal error) #48

Closed
rrubio opened this issue Feb 8, 2021 · 4 comments · Fixed by #49
Closed

Collection Types - Filters (500 internal error) #48

rrubio opened this issue Feb 8, 2021 · 4 comments · Fixed by #49
Labels
duplicate This issue or pull request already exists

Comments

@rrubio
Copy link

rrubio commented Feb 8, 2021

When performing a filter under "Collection Types" i get an internal error. Under headers i can see the right filter being used. The fields is of type Int:

Filter

image

Header

calendar-date?page=1&pageSize=10&_sort=recId:ASC&_where[0][calendarDay]=1

NOTE: querystring query works fine see examle below:

api/calendar-date?calendarDay=${calendarDay}

HTTP Response

image

{"statusCode":500,"error":"Internal Server Error","message":"An internal server error occurred"}

Header

image

UI Error message

image

@brettwillis
Copy link
Member

brettwillis commented Feb 8, 2021

Hi @rrubio , I'm pretty sure that this is due to #23. The complex query format with _where is not implemented yet. I see that the admin UI has now migrated to use the _where format which means that filters applied with the UI will result in this error until I implement it. I'll put it next on my list!

To be sure, there should be some Cloud Run error output for this one, could you check at https://console.cloud.google.com/logs?

But like you say, for this simple query, the simple format should still work in the meantime calendar-date?page=1&pageSize=10&_sort=recId:ASC&calendarDay=1.

@brettwillis brettwillis added the duplicate This issue or pull request already exists label Feb 9, 2021
@rrubio
Copy link
Author

rrubio commented Feb 9, 2021

@brettwillis thank you man. I'll need to confirm logs on cloud run.

@brettwillis
Copy link
Member

@rrubio I've implemented complex queries in version 3.0.0-alpha.28. Give it a try and please let me know how it goes.

@rrubio
Copy link
Author

rrubio commented Feb 23, 2021

@brettwillis thank you. I'll be able to check this week and provide you with an update.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants