Comments (9)
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.
@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.
Win10
from microgateway.
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.
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.
Exactly @geekosphere-net in MAC/CENTOS7 same error... @ozairs
from microgateway.
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.
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.
May be a moot point but this is still an issue.
from microgateway.
Related Issues (20)
- is there a service discovery plugin?
- how to register new client-ids and subscription (with open source version) HOT 5
- Accept-Encoding gzip not working HOT 1
- The empty policy is crashed during flow.fail
- enable microgateway works with node 8.x and /node 10.x HOT 2
- Can't install on Windows 7 HOT 1
- Strongloop/Microgateway in production HOT 1
- Is this project still maintained? HOT 1
- Update dependencies
- Yarn support
- Is this compatible with loopback4?
- Microgateway not starting on apim-ui
- How connect Microgateway with and external Manager HOT 1
- Connect microgateway to existing LB app that uses local user accounts and accessToken with scopes
- add loopback-component-cas? HOT 1
- Proper contact HOT 3
- npm err Missing options@latest in the bundle builds console HOT 1
- what is the superiority compare to the kong? HOT 1
- please when i use chinese in the body of a post request i can not get the post data HOT 6
- Datastore/cache reduces performance. HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microgateway.