Git Product home page Git Product logo

Comments (9)

Searev avatar Searev commented on August 18, 2024 1

I recently encountered a similar problem. The microgateway used to work just fine, but these days, any new install would end up displaying an api-loader failed to load any API error message for any request (on Windows 7, 10, CentOS 6).
I found out that the problem came from one of the dependencies, loopback-datasource-juggler, which has been upgraded from 2.54.1 to 2.55.1.
I resolved the problem specifying the package version in the package.json file

{
    // other fields
    "dependencies": {
        // other dependencies
        "loopback-datasource-juggler": "2.54.1"
    },
    "APIConnectGateway": "1.0.0"
}

I hope it can help some of you !

from microgateway.

tonyffrench avatar tonyffrench commented on August 18, 2024

@pdhoward I've completed "Getting Started" instructions on my mac and it worked flawlessly. What Windows version do you use?

tonyf-mbp-ibm:apim-clean tonyf$ curl -v http://localhost:3000/sample/echo
*   Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 3000 (#0)
> GET /sample/echo HTTP/1.1
> Host: localhost:3000
> User-Agent: curl/7.51.0
> Accept: */*
>
< HTTP/1.1 200 OK
< X-Powered-By: IBM API Connect MicroGateway
< access-control-allow-origin: *
< access-control-allow-credentials: false
< access-control-allow-headers:
< access-control-allow-methods: GET,OPTIONS
< access-control-expose-headers: APIm-Debug-Trans-Id, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Global-Transaction-ID
< Host: localhost:3000
< User-Agent: curl/7.51.0
< Accept: */*
< X-RateLimit-Limit: 100
< X-RateLimit-Remaining: 99
< Content-Length: 22
< Date: Tue, 18 Apr 2017 23:27:07 GMT
< Connection: keep-alive
<
* Curl_http_done: called premature == 0
* Connection #0 to host localhost left intact

from microgateway.

pdhoward avatar pdhoward commented on August 18, 2024

Win10

from microgateway.

kimoudev avatar kimoudev commented on August 18, 2024

I have this error
Error: api-matcher failed to match to any API
I did exactly as indicated..i'm on mac.
help please @tonyffrench

from microgateway.

geekosphere-net avatar geekosphere-net commented on August 18, 2024

I get the same error when running in CentOS 7
In Step 3 it says to go to the root folder which is the same folder as Step 2 and when I create the sample.js file there, the require for the microgw fails as it is not in "../lib/microgw" but "./lib/microgw"
after changing that I still have the same "failed to load any API" error

from microgateway.

kimoudev avatar kimoudev commented on August 18, 2024

Exactly @geekosphere-net in MAC/CENTOS7 same error... @ozairs

from microgateway.

geekosphere-net avatar geekosphere-net commented on August 18, 2024

npm test fails as well so not sure it is due to problems with the script.js or sample_1.0.0.yaml code.

from microgateway.

raghavendranagolu avatar raghavendranagolu commented on August 18, 2024

Hi All,

I am also getting the same error '{"name":"PreFlowError","message":"unable to process the request"}' ,exact resolution has not yet identified for this problem. Can anyone please help me on this.

from microgateway.

jpegram2 avatar jpegram2 commented on August 18, 2024

May be a moot point but this is still an issue.

from microgateway.

Related Issues (20)

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.