You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just upgraded to latest micronaut version, and now 400 and 404 errors have a blue background. I am not sure why, and errors for parameters are beeing cached somehow, if I have api that requires params a and b, and I do not supply any arguments, I will get error saying "Required argument [a] not specified" but then even if I fill a, it will still say same, but it actually should complain about param [b].. is there a way to turn off this feature?
Sergio del Amo — Yesterday at 14:18
I don’t think they are cached. Do you have a reproducer.
They errors are displayed in a nice HTML page only If the response accepts HTML
Why? Because it is a best user experience when accessing in the browser than the previous default
Vytas — Yesterday at 14:20
I can do a quick test with new repo to see if I can reproduce, are there any templates to use or I just can create from micronaut launch?
I just tested by creating a new app with same features as mine, created endpoint with a and b params and tryed to access it, I get error: and then if I fill inn a and refresh browser I still see same message. Something is not working.
This is url for app
curl --location --request GET 'https://launch.micronaut.io/create/default/com.error.example?lang=JAVA&build=GRADLE_KOTLIN&test=JUNIT&javaVersion=JDK_21&features=micronaut-aop&features=openapi&features=retry&features=swagger-ui&features=openapi-explorer&features=cache-caffeine&features=http-client&features=properties&features=data-jdbc&features=flyway&features=postgres&features=testcontainers&features=awaitility&features=control-panel&features=junit-params&features=micronaut-test-rest-assured&features=mockito&features=test-resources&features=langchain4j-googleai-gemini&features=management&features=micrometer-annotation&features=micrometer-prometheus&features=graalvm&features=micronaut-http-validation&features=validation&features=views-velocity&features=websocket' --output example.zip
@Get(uri="/", produces="text/plain")
public String index(String a, String b) {
return "Example Response";
}
Same error message
Something is beein cached.
Just a tip: run application with ./gradlew run
Vytas — Yesterday at 14:35
But this should be opt in feature anyways.. Most of the time even tho I develop APIs for other services to consume, when I open them in browser I want to see the same thing as another service would see it, not in pretty format, that does not help me debug issues.
Issue description
Vytas
Sergio del Amo — Yesterday at 14:18
Vytas — Yesterday at 14:20
Sergio del Amo — Yesterday at 14:20
Vytas — Yesterday at 14:27
Vytas — Yesterday at 14:35
Vytas — Yesterday at 14:59
The text was updated successfully, but these errors were encountered: