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

Empty response from server #284

Open
jschaf opened this issue Jan 18, 2025 · 1 comment
Open

Empty response from server #284

jschaf opened this issue Jan 18, 2025 · 1 comment

Comments

@jschaf
Copy link

jschaf commented Jan 18, 2025

Hi, I'm having trouble getting the server to return any data. I'm happy to help debug, but not sure where to start.

Run mvn install on target project

mvn install

[INFO] To view your build scan, start-up the server:
[INFO] java -jar /opt/homebrew/Cellar/maven/3.9.9/libexec/lib/ext/maven-build-scanner-jar-with-dependencies.jar
[INFO] Then open http://localhost:3000/?projectId=com.arryved:Backend&sessionId=c70d026c-39b2-4e4b-9715-74a06a0d9deb

Start the server

output="$(mvn help:evaluate -Dexpression=maven.home -DforceStdout -q)/lib/ext/maven-build-scanner-jar-with-dependencies.jar"
java -jar $output

# Open http://localhost:3000 to view build scan results

Empty response from server

curl localhost:3000
curl: (52) Empty reply from server

Debugging

java -version

openjdk version "17.0.13" 2024-10-15
OpenJDK Runtime Environment Temurin-17.0.13+11 (build 17.0.13+11)
OpenJDK 64-Bit Server VM Temurin-17.0.13+11 (build 17.0.13+11, mixed mode, sharing)
@jschaf
Copy link
Author

jschaf commented Jan 18, 2025

I worked around the issue by copying the index.html file to a local directory and serving it with the IntelliJ bundled server. Then, I copied the data from ~/.mvn and lightly edited the JS to use hardcoded paths.

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

1 participant