Closed Nazarah closed 6 years ago
@Nazarah Provide a Swagger file that you tried to add
Tested in nightly APInf and could not reproduce the error. Description within the json or yaml file needs to be under 1000 characters.
@marla-singer sharing the swagger in rocket chat as GitHub won't allow u to upload json/yaml file
@Nazarah Is this again because of staging?
I'm close to the root cause: The docker container on staging has faulty DNS settings so that the request to get the json (Swagger) file is pointing to the wrong IP address. Nothing wrong with the app, if I'm correct.
I'm working on fixing the DNS problem.
I will test it again after resolving the problem with DNS settings. I've got strong feeling that the error relates (about [object Object] message)
Modified the platform docker image on staging: Removed staging.apinf.io reference on the last line of /etc/hosts file and now the error is fixed.
@marla-singer, please verify and make other checks you see necessary.
@Nazarah Please test it again. [object Object] error doesn;t appear
@marla-singer Tested in both vamos.apinf.io and staging.apinf.io with release 0.52. In vamos, I can add an API by uploading swagger file. In APInf staging, i still got the problem [[object object]] I cleaned the browser history before testing it. Tested with Windows 10 and chrome.
Steps to Reproduce:
Outcome: Red s-alert appears showing message: [[object object]] API can't be added to the platform http://recordit.co/6M107C1p0z
Expected Behavior: It should be possible to add an API using a valid json or yaml file that contains atleast API name and URL. User should be redirected to API profile.
Environment: Windows 10, Chrome browser (latest), APInf staging site (https://staging.apinf.io) - relase 0.52