Skip to content
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

500 Error: Invalid API version: 4_0 #509

Closed
fishfree opened this issue Apr 10, 2024 · 1 comment
Closed

500 Error: Invalid API version: 4_0 #509

fishfree opened this issue Apr 10, 2024 · 1 comment

Comments

@fishfree
Copy link

I followed this instruction and compiled the server/target/blacklab-server-4.0.0-SNAPSHOT.war file, put it under /var/lib/tomcat9/webapps/blacklab-server.war
When I access http://***/blacklab-server
It showed errors:

java.lang.IllegalArgumentException: Invalid API version: 4_0
	nl.inl.blacklab.server.lib.results.ApiVersion.fromValue(ApiVersion.java:85)
	nl.inl.blacklab.server.BlackLabServer.handleRequest(BlackLabServer.java:211)
	nl.inl.blacklab.server.BlackLabServer.doGet(BlackLabServer.java:176)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:655)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71)
@jan-niestadt
Copy link
Member

This was a bug in how API version is handled, now fixed on dev (16053fb). The bug triggered because there was some other problem during initialization (perhaps an invalid value in a configuration file, or something similar), which is why we missed this bug so far. Thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants