Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Internal error (failed to find matching key for verification) when using java sdk on dev environment #33

Open
ghost opened this issue Jul 2, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Jul 2, 2021

When I try to use java sdk to make a simple call to Fiskaly api on dev environment

    val apiKey = "API_KEY"
    val apiSecret = "API_SECRET"
    val client = FiskalyHttpClient(apiKey, apiSecret, "https://sign.fiskaly.dev/api/v2")
    println(client.request("GET", "/tss"))

I get exception:

Exception in thread "main" FiskalyClientException{ Code=-32603, Message=Internal error, Data="failed to find matching key for verification: failed to find matching key for key ID \"GZzxbuN8ZCafnK1xRWe08caWgXH9x1OMfOGWyyjrpS4\" in key set"}
	at com.fiskaly.sdk.factories.ExceptionFactory.buildClientException(ExceptionFactory.java:30)
	at com.fiskaly.sdk.FiskalyHttpClient.doInvoke(FiskalyHttpClient.java:205)
	at com.fiskaly.sdk.FiskalyHttpClient.request(FiskalyHttpClient.java:129)
	at com.fiskaly.sdk.FiskalyHttpClient.request(FiskalyHttpClient.java:188)
	at demo.MainKt.main(Main.kt:16)
	at demo.MainKt.main(Main.kt)

I'm trying with the latest 1.2.200 java sdk (tried on both Android and MacOS).

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

No branches or pull requests

0 participants