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.

Error filtering applications by org

See original GitHub issue

Stratos Version

4.2 (3.2.0 is working ok)

CF API Version

2.153.0

Expected behaviour

Should be able to filter applications by org + space

Actual behaviour

org filter does not work, errors calling CF API /v2/apps

2020-10-12T12:24:03.52+0100 [APP/PROC/WEB/0] OUT WARN[Mon Oct 12 11:24:03 UTC 2020] Passthrough response: URL: https://<API>/v2/apps?order-direction=asc&order-direction-field=creation&page=1&results-per-page=100&inline-relations-depth=2&include-relations=space,organization,routes&q=organization_guid=acb77bc7-846f-481f-86a7-041d478d10ea&q=space_guid%20IN%20333cb316-2f0a-4482-9922-b65bf76d4518, Status Code: 400, Status: 400 Bad Request, Content Type: application/json;charset=utf-8, Length: 167

2020-10-12T12:24:03.52+0100 [APP/PROC/WEB/0] OUT WARN[Mon Oct 12 11:24:03 UTC 2020] {
2020-10-12T12:24:03.52+0100 [APP/PROC/WEB/0] OUT   "description": "The query parameter is invalid: organization_guid=acb77bc7-846f-481f-86a7-041d478d10ea",
2020-10-12T12:24:03.52+0100 [APP/PROC/WEB/0] OUT   "error_code": "CF-BadQueryParameter",
2020-10-12T12:24:03.52+0100 [APP/PROC/WEB/0] OUT   "code": 10005
2020-10-12T12:24:03.52+0100 [APP/PROC/WEB/0] OUT }

Steps to reproduce the behavior

the error can be replicated with cf curl

$ cf curl '/v2/apps?order-direction=asc&order-direction-field=creation&page=1&results-per-page=100&inline-relations-depth=2&include-relations=space,organization,routes&q=organization_guid=acb77bc7-846f-481f-86a7-041d478d10ea&q=space_guid%20IN%20333cb316-2f0a-4482-9922-b65bf76d4518'
{
   "description": "The query parameter is invalid: organization_guid=acb77bc7-846f-481f-86a7-041d478d10ea",
   "error_code": "CF-BadQueryParameter",
   "code": 10005
}

= is not a valid operator in the CF API v2. It should be :

https://apidocs.cloudfoundry.org/13.19.0/apps/list_all_apps.html

Valid ops: : >= <= < > IN

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
richard-coxcommented, Oct 13, 2020

The fix has merged and will make it into 4.2.0 which is due in the next few weeks

0reactions
robwhitbycommented, Oct 12, 2020

that’s great, thanks very much 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Application of Prediction Error Filters for the Detection of Weak ...
This paper analyzes how the signal-to-noise ratio (SNR) for digital registrations of weak earthquakes can be enhanced by application of prediction error ......
Read more >
Error filtering, pair assembly and error correction for next ...
Error correction methods for amplicon pyrosequencing reads include ... Filtering is commonly used in amplicon sequencing applications such as marker gene ...
Read more >
How to manage exceptions thrown in filters in Spring?
So, any errors caused by exceptions first pass through the ErrorController and are re-directed off to the exception handler by rethrowing them from...
Read more >
Error when trying to use expression filter inside a choice
When trying to uses a expression filter inside a choice, although is possible to do it fails when you already have a when...
Read more >
A Kalman filter approach to reduce position error ... - DiVA Portal
A Kalman filter approach to reduce position error for pedestrian applications in areas of bad GPS reception. Mattias Eliasson. Mattias Eliasson. Spring 2014....
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