postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.84k stars 839 forks source link

import from URL doesn't work anymore #10648

Closed mzatko closed 1 year ago

mzatko commented 2 years ago

Is there an existing issue for this?

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

@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 commented 2 years ago

@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 commented 2 years ago

@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.

https://user-images.githubusercontent.com/31915995/161279175-e5f868ff-82d4-48d7-a268-30a821558040.mov

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

GeorgeExplorer commented 2 years ago

@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:

https://user-images.githubusercontent.com/99310998/161439958-3bf8dc68-22ed-44af-8d15-d880d3996076.mp4

umeshp7 commented 2 years ago

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

GeorgeExplorer commented 2 years ago

@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 commented 2 years ago

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 commented 2 years ago

@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 commented 2 years ago

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

STK1321 commented 2 years ago

Hello I replicated the same issue :C

umeshp7 commented 2 years ago

@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 commented 2 years ago

@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 commented 2 years ago

@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 commented 2 years ago

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 commented 2 years ago

@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.

https://user-images.githubusercontent.com/31915995/171362763-40f5bf9f-644a-4c5f-b9d8-c1cb90113d66.mov

GeorgeExplorer commented 2 years ago

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 commented 2 years ago

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

Jonnygeneral33 commented 2 years ago

@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 commented 2 years ago

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?

Thank you!

franciscosamuel commented 2 years ago

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 commented 2 years ago

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

akshaydeo commented 1 year ago

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

naji-makhoul commented 1 year ago

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 commented 9 months ago

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

pescheck-devops commented 7 months ago

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.