GithubHelp home page GithubHelp logo

Error at Testing about irma_api_server HOT 3 CLOSED

credentials avatar credentials commented on July 29, 2024
Error at Testing

from irma_api_server.

Comments (3)

sietseringers avatar sietseringers commented on July 29, 2024

Hi!

I can't be sure exactly what is going wrong, but the script seems to fail to find the public key with which the API server signs its responses. It is checking for it at irma_api_server/pk.pem, which is wrong, as it is generally located at src/main/resources/pk.pem.

There are several confusing things about the error:

  • the stack trace points to line 31 of testsp.js, but the loading of the public key happens at line 30, and there has never been a version where that happens at line 31
  • as I mentioned, the path is wrong. The only way that the script would look at a location different from the one I mentioned is by passing it a third parameter, but you have not done so.

Have you perhaps modified the testsp.js script? Are you on the latest master?

from irma_api_server.

mardimitr avatar mardimitr commented on July 29, 2024

Thank you very much for your response!
I don't change the file and I use the latest version of the master.
I built it again but at this time I executed the command node utils/testsp.js http://localhost:8088 and I got the following different result:
eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJzcHJlcXVlc3QiOnsidmFsaWRpdHkiOjYwLCJ0aW1lb3V0Ijo2MCwicmVxdWVzdCI6eyJjb250ZW50IjpbeyJsYWJlbCI6Ik92ZXIgMjEiLCJhdHRyaWJ1dGVzIjpbImlybWEtZGVtby5NaWpuT3ZlcmhlaWQuYWdlTG93ZXIub3ZlcjE4IiwiaXJtYS1kZW1vLk1pam5PdmVyaGVpZC5hZ2VMb3dlci5vdmVyMjEiXX1dfX0sImlhdCI6MTUyMDk1MDgzNiwiaXNzIjoidGVzdHNwIiwic3ViIjoidmVyaWZpY2F0aW9uX3JlcXVlc3QifQ.
**Error in initial request:

<title>Error 503 </title>

HTTP ERROR: 503

Problem accessing /irma_api_server/api/v2/verification/. Reason:

    Service Unavailable


Powered by Jetty:// **

It is not the same with the first problem. How can I deal with this ?
Thank you very much for your time and help.

from irma_api_server.

sietseringers avatar sietseringers commented on July 29, 2024

That looks more familiar. Probably it means that the irma_api_server encountered some error during startup (e.g. missing irma_configuration folder in src/main/resources), so that it cannot handle the request that testsp.js sent to it. When you start irma_api_server, does it output an exception?

from irma_api_server.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.