Skip to content
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

import from URL doesn't work anymore #10648

Closed
1 task done
mzatko opened this issue Feb 9, 2022 · 27 comments
Closed
1 task done

import from URL doesn't work anymore #10648

mzatko opened this issue Feb 9, 2022 · 27 comments

Comments

@mzatko
Copy link

mzatko commented Feb 9, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Describe the Issue

collection/API json import from URL stopped working in postman version 9.13 (maybe little earlier)
with message: "error while fetching data from link", It looks like it doesn't care about what you enter as URL
Now I need to download from exactly same URL (using postman e.g.) into a file and import it from the file afterwards

It definitely worked directly from URL few weeks ago

Steps To Reproduce

  1. click API(or Collections)
  2. click Import
  3. click Link
  4. insert link to valid OpenAPI definition online(json, yaml, doesn't matter)
  5. click Continue

"Error while fetching data from link is shown"

Message is shown regardless what you enter as URL, you can even leave it empty

Screenshots or Videos

No response

Environment Information

- Operating System: Ubuntu 20.04 LTE (upgraded to newest)
- Platform Type: Native App
- Postman Version: 9.13.0

Additional Context?

No response

@umeshp7
Copy link

umeshp7 commented Feb 15, 2022

Hey @mzatko! We are able to reproduce this issue and have started work on a fix, it will be out soon. Although, we are able to import JSON links successfully, this: https://petstore.swagger.io/v2/swagger.json for example.

Could you share any links that don't work for you? (For json and/or yaml)

@GeorgeExplorer
Copy link

Hey @mzatko! We are able to reproduce this issue and have started work on a fix, it will be out soon. Although, we are able to import JSON links successfully, this: https://petstore.swagger.io/v2/swagger.json for example.

Could you share any links that don't work for you? (For json and/or yaml)

Hello everyone!
I have the same trouble. When i'm trying to import a WSDL file, i get this error.

Environment Information

- Operating System: Windows 10 Pro 21H2, 19044.1586
- Platform Type: Desktop App
- Postman Version: 9.15.6 (it's the latest verison)

@umeshp7
Copy link

umeshp7 commented Mar 31, 2022

@GeorgeExplorer Could share the details about how you are trying to import this WSDL? If you have a link could you share it with us? Also, if you could share the error that you are getting here.

We recently fixed this issue where links were not imported for non-json type data. Also, I tried it in the latest app on the web and it seems to be importing links from yaml, xml well.

@AvanCodeDev
Copy link

@umeshp7 I'm trying to import this WSDL http://www.dneonline.com/calculator.asmx?WSDL and I'm getting this error "Error while fetching data from link."

@umeshp7
Copy link

umeshp7 commented Apr 1, 2022

@AvanCodeDev Thanks for sharing that. I am able to reproduce it on the Desktop App. Although as a workaround, I would suggest you try doing this from the web browser. Here is a video of that link importing from Postman for Web.

Screen.Recording.2022-04-01.at.7.32.34.PM.mov

Meanwhile, we'll take a look into this issue internally and update the thread with the progress.

@GeorgeExplorer
Copy link

@AvanCodeDev Thanks for sharing that. I am able to reproduce it on the Desktop App. Although as a workaround, I would suggest you try doing this from the web browser. Here is a video of that link importing from Postman for Web.

Screen.Recording.2022-04-01.at.7.32.34.PM.mov
Meanwhile, we'll take a look into this issue internally and update the thread with the progress.

@umeshp7 Hi!
Now i've been tried to import the link with WSDL into the Postman web and the issue appear again.
Look at the attachment, please:

postman.error.mp4

@umeshp7
Copy link

umeshp7 commented Apr 4, 2022

@GeorgeExplorer Can you tell us which browser are you using? I am able to reproduce this behavior in the Desktop app.

@GeorgeExplorer
Copy link

GeorgeExplorer commented Apr 8, 2022

@GeorgeExplorer Can you tell us which browser are you using? I am able to reproduce this behavior in the Desktop app.

@umeshp7
Chrome 99.0.4844.84 (64 бит)
Mozilla Firefox 98.0.2 (64 бита)

@brandsr
Copy link

brandsr commented Apr 29, 2022

I still have the same problem in the dekstop app at a Macbook. I am at version Version 9.17.1 UI Version: 9.17.1-ui-220427-0630 Desktop Platform Version: 9.16.0 (9.16.0)
Should I switch over to Insomnia?

@umeshp7
Copy link

umeshp7 commented May 1, 2022

@GeorgeExplorer @brandsr prioritizing this. We'll have an update for you in a week. Thanks for understanding.

Meanwhile, as a workaround to unblock you. Please copy-paste the content from the link through "Raw text" and import your WSDL in postman. 🙇🏼

@DanRos84
Copy link

DanRos84 commented May 1, 2022

Hello everyone! I have the same issue...and I will be wating for your update!! Thanks in advance.

@STK1321
Copy link

STK1321 commented May 25, 2022

Hello I replicated the same issue :C

@umeshp7
Copy link

umeshp7 commented May 25, 2022

@STK1321 @DanRos84 We have recently merged a fix for this in the recent app. Could try to update the app and try it out again and let us know if you are still facing any issues?

cc @sairam459

@sairam459
Copy link

@STK1321 @DanRos84 Please update postman app to the latest version (Version 9.20.1). We have recently released a fix for this issue. Please let us if you are facing the issue after updating the app.

@GeorgeExplorer
Copy link

@STK1321 @DanRos84 Please update postman app to the latest version (Version 9.20.1). We have recently released a fix for this issue. Please let us if you are facing the issue after updating the app.

Hi, Sairam. Tell me pls, how can i install this version? My postman desktop client shows me the latest version as 19.9.3 (look at screen)
image

@jelen07
Copy link

jelen07 commented May 31, 2022

Hi, I have an issue when trying to import http://167.71.46.104:8888/api/v1/openapi with the toast Error while fetching data from link. Other links work well (https://petstore.swagger.io/v2/swagger.json).

Version 9.19.3
UI Version: 9.19.3-ui-220518-1430
Desktop Platform Version: 9.19.0 (9.19.0)

Snímek obrazovky 2022-05-31 v 12 58 22

@umeshp7
Copy link

umeshp7 commented Jun 1, 2022

@jelen07 Seems like the v9.20.x is currently under a slow rollout. Sorry for the inconvenience but we will update this ticket when its availability is 100%.
This is an issue with unsecured URLs which is blocked at the browser level. Which we have fixed in the upcoming version of the desktop app.

Meanwhile, to unblock yourself, you could use the 'Raw text' way to import by pasting the OpenAPI content. Or you could use the Postman on Web to import this URL.

Screen.Recording.2022-06-01.at.2.03.21.PM.mov

@GeorgeExplorer
Copy link

GeorgeExplorer commented Jun 1, 2022

Hi, Sairam. Tell me pls, how can i install this version? My postman desktop client shows me the latest version as 19.9.3 (look at screen)

@umeshp7 Could you answer me pls on the question above? I can't find the version 9.20.1
UPD. Sorry, i read the reply to @jelen07 from you above and also got my question's answer

Regards you

@jelen07
Copy link

jelen07 commented Jun 1, 2022

@umeshp7 Thanks for the info. Maybe some better error message would be more appropriate. Already imported via raw text 👍

@Jonnygeneral33
Copy link

@umeshp7 I encountered the same issues trying to import through link, I gave raw text a go and that even didn't work . Wondering if the propose fix has been rollout yet?

@umeshp7
Copy link

umeshp7 commented Aug 2, 2022

The issue with Importing via link has been fixed and in production.

@Jonnygeneral33 Seems like the content you are trying to import could be invalid to be imported in Postman.
Could you share a bit more info around this?

  • What is the error you are receiving? (in both link and Raw)
  • What version of app you are on?
  • If possible, could you share the content you are trying to import? You can share it via help@postman.com as well. Just provide the context of this Github thread.

Thank you!

@franciscosamuel
Copy link

franciscosamuel commented Aug 16, 2022

This was happening to me as well.
I was able to replicate using the following steps (Windows 11 + .NET 6.0 required)

  1. Unzip WebApplication2.zip (attached)
  2. Add the following entry to the hosts file (C:\Windows\System32\drivers\etc\hosts):
    127.0.0.1 testdns
  3. Add the testdns and localhost bindings to IIS's Default Web Site
  4. Point IIS's Default Web Site to the folder containing the contents of WebApplication2.zip
  5. Try to import the following 2 Links to Postman (both should work, but only the second one does):
    5.1. http://testdns/swagger/v1/swagger.json
    5.2. http://localhost/swagger/v1/swagger.json

WebApplication2.zip

@akshaydeo
Copy link

@franciscosamuel could you try 0.0.0.0 testdns instead of 127.0.0.1 testdns in hosts?

@akshaydeo
Copy link

@franciscosamuel, I am closing this ticket for now. Please re-open if my earlier suggestion doesn't help to resolve the issue 🙇‍♂️

@naji-makhoul
Copy link

naji-makhoul commented Mar 22, 2023

it's not working when trying to import from localhost with https

after disable ssl from project (webapi core) in Visual Studio 2022 i can import swagger.json from link url

error while fetching data from link

on developer tools its trying to get data from wrong url , its change it to http http://localhost:44394/swagger/v1/swagger.json net::ERR_CONNECTION_RESET
image

Postman v10.12.5

@zohair1991
Copy link

Hello everyone, is it fixed? I am still getting this error.
Windows 11
VS Code
PostMan

@pescheck-devops
Copy link

Same here still getting this error on Linux:

Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.4 LTS
Release:	22.04
Codename:	jammy

Postman

As well as localhost http and https. When importing in the web client it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests