-
Notifications
You must be signed in to change notification settings - Fork 182
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
PreFlowError running API Connect v5.0.8.0 (apiconnect v2.7.28) Microgateway #87
Comments
The preflow error usually occurs before execution of the API assembly. Can you run the same request outside of the Test tool within the designer (ie using curl). Are you sure you have the right clientid, clientsecret, URI (remember that incoming API is combination of base_path + API). |
Hi @ozairs , I'm getting same issue while running api locally on MicroGateway. Tested via. Soap UI, Postman, curl but same result. Verified Client id, secret, URI etc. and everything looks fine. Pushed loopback application & related product on Bluemix. Working fine there because it's running on DataPower gateway.. |
@kevinom I tried the scenario you describe.. seems to work for me based on current code I get from |
Hi Jeremy - here is the YAML file - had to ZIP it because it doesn't let me upload .YAML |
yeah.. Something is different about our environments.. I can't seem to recreate the problem using your swagger in my env..
|
Are you perhaps running with the IBM SDK for Node.js? |
So, I played around some more and realized I hadn't really updated apiconnect correctly to:
I was able to recreate the problem Work around:
This is some sort of packaging issue.. Seems like this is related to loopbackio/loopback-datasource-juggler#1467 |
The workaround worked for me. |
Thanks @jgeddes2001 .. It's working fine for me as well. |
Great!.. I'm still chasing what changes need to be made on the apiconnect shrinkwrap to line up with microgateway's dependencies.. I have a few suspects, but not there yet.. |
Hi Jeremy, |
@kevinom think that's coming from your actual app.. not related to microgateway.. Sounds like your datatypes aren't lining up.. |
Hopefully this is the issue tracking the underlying cause of these symptoms . . . |
I still experience this issue even in v2.7.30, and the workaround shared by @jgeddes2001 (redoing npm dependencies in microgateway modules) works well. I'm just wondering why this issue's not even resolved in the newly released version and there's no official announcement or notes from product team for the issue.. |
@jgeddes2001 is there a reason the workaround you provided would not work on windows 10? Work around: cd /usr/local/lib/node_modules/apiconnect/node_modules/microgateway |
@KarimPanni I'm guessing if the workaround doesn't work on your windows 10 in your environment is one of three things..
|
This issue should be resolved with APIConnect v5.0.8.1 and microagteway 1.6.6. |
Hi @jgeddes2001 , I'm facing the same issue with API Connect v 5.0.8.3 I tried the workaround you mentioned above in this thread but that didn't work for me. Here's the NPM and Windows version, I'm running on my machine. Could you please help me fix this issue ? Thanks. npm v 5.6.0 |
we have not yet support npm v5.6.x in API Apiconnect v.5.0.8.3. |
@saywow , Thanks for your response. It means, I'll need to downgrade the Node and npm version on my machine. I'll give it a try and let you know how it goes.. Btw, when will it start supporting the latest version of node and npm? Any idea ? |
Tentatively in next up coming release. Which node version are you using? Node 10.x or just node 8.x ? |
Hi @smartmouse , I was using 8.x , downgraded that to v 6.x and tried installing the APIc toolkit afterwards. But install itself is failing now. So I'm thinking to upgrade node version back to 8.x (which comes by default with npm 5.6) and then will try to install APIc toolkit again.. |
Getting the same error when i run the curl command: C:\Windows\system32>curl --request POST --url https://localhost:4002/api/Notes --header 'accept: application/json' --header 'content-type: application/json' --header 'x-ibm-client-id: default' --heade Here's my version:C:\Windows\system32>apic -v C:\Windows\system32>npm -v C:\Windows\system32>node -v |
Hi @asraro
Are you using git bash environment to execute curl? |
Folks, I getting the same error:
I already tried without success:
Here are the versions that I'm using:
Any help would be appreciated? Thanks! |
When running on the Microgateway, calls to API endpoints fail with the message:
{"name":"PreFlowError","message":"unable to process the request"}
Create a new API with any hardcoded target URL in the Invoke properties.
If you run the Test option from the Designer, it gives the error mentioned above.
The text was updated successfully, but these errors were encountered: