platform
platform copied to clipboard
Add API and connect to proxy shows error
Steps
1.Visit https://staging.apinf.io (v 0.48.0)
2.Login
3.Click on 'Add API'
4.Fill the form with details below:
- Enter API Name ( eg.Test-DP-Manager)
- Enter URL (eg.https://developers.google.com/apis-explorer/#p/deploymentmanager/v2/ )
5.Click on 'Add API' button
6.Go to proxy and fill all the mandatory fields in the form:
- Select one proxy from drop down menu (eg. API-Umbrella New/staging)
- Enter 'Proxy Base Path' (eg. /test-api-dp-manager/)
- Enter 'API Base path' (eg. ' / ' )
- Port (default port no. 443)
7.Select 'Rate limit mode' (eg: 'unlimited requests)
8.Click on 'Save and Publish' button
Expected Result
Successful in connecting API to a selected proxy
Actual Result
Connect API to a proxy shows error "Cannot read property length of null"
Browsers
Chrome v 59.0.3071.115 (64-bit)
Mozilla Firefox v 54.0.1 (32 bit)
Operating system
Windows 10
Screenshot
@saralavanip It would be really helpful, if either the error description or the screenshot also included the data you entered on the top of the page: paths, port etc. it would be easier to reproduce.
@bajiat , attached screenshot in above bug report for entered details in proxy form.
@saralavanip In the attached screenshot I only see the latter part of the screen, not the entered details in the first half of the screen.
@bajiat , added detailed steps for the above report.
At the moment there seems to be 4 proxies available on Staging.
- API-umbrella new <-- Save and publish fails
- Nightly umbrella <-- Save and publish succeeds
- Staging <-- Save and publish fails
- eMQ
So possibly there is some configuration issue, which causes the failures.
Another matter is, that it seems, that every action (open API, open Organization, select APIs in main menu, select Organizations in main menu, select Add API in main menu) causes following error log in browser's console log about exception:
Exception from Tracker recompute function: ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:29 SyntaxError: Unexpected identifier at f.View.
(ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:411) at ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:120 at Function.e._withTemplateInstanceFunc (ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:121) at ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:120 at Object.f._withCurrentView (ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:120) at n (ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:120) at e.Computation._compute (ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:67) at e.Computation._recompute (ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:67) at Object.e._runFlush (ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:67) at Object.e.flush (ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:67) at g._invalidateTracker (ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228) at a (ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228) at Object.d.runTriggers (ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228) at o._actionHandle (ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228) at ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228 at r (ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228) at e (ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228) at ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228 at e (ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228) at ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228 at e (ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228) at ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228 at e (ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228) at ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228 at e (ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228) at ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228 at e (ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228) at ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228 at e (ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228) at ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228 at e (ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228) at ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228 at e (ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228) at ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228 at e (ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228) at ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228 at e (ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228) at ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228 at e (ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228) at ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228 at e (ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228) at Object.d.runTriggers (ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228) at o._exitHandle (ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228) at ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228 at e (ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228) at ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228 at e (ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228) at ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228 at e (ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228) at ead9b7f64a24882e2136d1288fe613ebb506afa7.js?meteor_js_resource=true:228
@shaliko Can you check whether there are any configuration issues with the API-umbrella new and Staging proxies for staging.apinf.io?
@bajiat @ccsr Looks like port 3002 was closed on hoster level (https://staging.apinf.io:9200). I can't connect to it from the public internet.
Docker starts ApiUmbrella instance with shared ports 3001 and 3002 but is not visible for external requests.
@saralavanip @bajiat @mauriciovieira @ccsr I found and fixed the issue. There was one additional image "apinf/maintenance", I and Chandra created it for show maintenance page during migration.
I wrong stopped "apinf/maintenance" container, it was boot on reboot server and had conflict with ApiUmbrealla. On reboot docker-compose, automaticlly detect that were stop container "apinf/maintenance" and restarted it.
Now I totally dropped container and Image from the server.
@saralavanip Please check and approve that issue was fixed.
Thanks @shaliko for fixing.
@shaliko , @bajiat , verified on staging v0.49.0
Findings with proxies below:
- API-umbrella new : Save and publish fails
- Nightly umbrella: Save and publish succeeds
- Staging : Save and publish fails
Screenshot for proxy details:
@shaliko what is the status of this task?
@Nazarah Not yet started to work on it, will try today or tomorrow.
@Nazarah or @wuder4 could another of you check if this is still valid?
Actually I just yesterday connected API to proxy on 0.52.0, and I didn't get error. To be closed.
Hi
I am facing the same issue while publishing API on APInf. I follow the steps mentioned on following link for installation: docker installation
Can you guide me how to solve this issue. Version used: APInf- latest API umbrella- latest
Please find the below screenshot for the same:
Hi,
it looks like there is something going on with the proxy settings. Could you please double check the proxy settings:
In the meanwhile, I'll go over the docker installation docs to see if something has changed / borkered