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

Can't execute query from Spring Boot App #35

Open
Afler opened this issue Jul 8, 2024 · 1 comment
Open

Can't execute query from Spring Boot App #35

Afler opened this issue Jul 8, 2024 · 1 comment

Comments

@Afler
Copy link

Afler commented Jul 8, 2024

Running on Windows 10 and JDK corretto-17.0.8
I've tried to execute query like this:
image

and get:

Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
	at java.base/sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:146) ~[na:na]
	at java.base/sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:127) ~[na:na]
	at java.base/java.security.cert.CertPathBuilder.build(CertPathBuilder.java:297) ~[na:na]
	at java.base/sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:434) ~[na:na]
	... 36 common frames omitted

If i set TSLSecurity.INSECURE options then my whole app hang on this line
image

@Afler
Copy link
Author

Afler commented Jul 8, 2024

Ok I solved my problem when I used suggested project-based approach from documentation.
I assume my problem with manual config approach appeared because creating EdgeDBConnection and EdgeDBClientConfig drops its default values so I must to set all existing properties manually instead of overwrite one or two I wanted. I think adding method EdgeDBClientConfig.builder().getDefaultConfig().set-PropertyName-() would be good to ensure option to overwrite only desired config or connection properties;
I'm still curious how I had to configure my original setup to make it work

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