Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Pouria
Regular Visitor

Error accessing data from Web but works with Postman!

hello Guys, 

this is my first time on this community and first question, so sorry if i dont know some ruls in here 🙂
I am trying to use this URL:

https://qualysapi.qualys.eu/api/2.0/fo/scan/?action=fetch&scan_ref=scan/1571065003.11385&output_form...
to get data from Qualys but  get this error:

PowerBI_Error.jpg

however the same command works in Postman!!!

I really need to get this data to PowerBI, these are scan results from Qualys.

do you have any idea maybe?

regards, 

Pouria 

1 ACCEPTED SOLUTION

Hi @Pouria ,

Could you please provide the related screenshot about the step <"Fetch" request>? By the way, did you also add the custom header "X-Requested-With" when connect to data source?

yingyinr_0-1622624410628.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-yiruan-msft
Community Support
Community Support

Hi @Pouria ,

You can refer the content in the following threads to get it and check whether it can connect successfully:

How to Integrate Power BI with Qualys

Error accessing data from Web

yingyinr_0-1622171565042.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

hi yingyinr, 

 

thank s for your answer, Ive read and used that Doc. It works and I haved also transfered data from Qualys to PowerBi with that.

But almost everywher that I have a "Fetch" request it doesnt work. 

Do you have any Idea there?

 

regards, 

Pouria 

Hi @Pouria ,

Could you please provide the related screenshot about the step <"Fetch" request>? By the way, did you also add the custom header "X-Requested-With" when connect to data source?

yingyinr_0-1622624410628.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

hallo @v-yiruan-msft

sure, i can provide you with more details:

My powerBi Inputs are:

URL:
https://qualysapi.qualys.eu/api/2.0/fo/scan/?action=

fetch&scan_ref=scan/1621433037.28987&output_format=csv
headers:
Authorization > Basic bnR0Y20tcG06I05UVHNlYzEyMw==
X-Requested-With > Sample
which doesnt work.


However, the same input works in Postman:
URL:

curl -L -m 2 -X POST 'https://qualysapi.qualys.eu/api/2.0/fo/scan/' -H 'X-Requested-With: QualysPostman' -H 'Authorization: Basic bnR0Y20tcG06I05UVHNlYzEyMw==' -F 'action="fetch"' -F 'scan_ref="scan/1621433037.28987"' -F 'output_format="csv"'

(please see the attachment)

InputQualys.jpglast Error.jpgLast Error 2.jpg

  

Postman.jpg

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.