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

Invalid file format error message on while uploading the data files for collection monitors #11151

Closed sseenivasan89 closed 2 years ago

sseenivasan89 commented 2 years ago

Is there an existing issue for this?

Describe the Issue

when i upload the data file (csv) to the collection monitors, it says as Invalid file format. Only JSON and CSV files are accepted.

there is no error when i used the same file to run collections from collection runner and the collection is running fine

Note : json data file format is working fine in collection monitor

Steps To Reproduce

  1. Open the monitor tab
  2. Create monitor
  3. Upload valid csv file in Upload a data file section
  4. You could see the error message as Invalid file format. Only JSON and CSV files are accepted

Screenshots or Videos

image

image

Operating System

Windows

Postman Version

9.27.1

Postman Platform

Postman App

Additional Context?

No response

DannyDainton commented 2 years ago

Hey @sseenivasan89

Can you supply a copy of the file that you're seeing the issue with, please? Also, what does the preview of the Runner file look like when opened?

sseenivasan89 commented 2 years ago

Hey @DannyDainton

when i tried with collection runner the preview was as expected but when i uploaded the same file in monitor it showed me the above error attaching the file what i tried

DataMonitor.csv

DannyDainton commented 2 years ago

I've been unable to reproduce this issue with that file - It will load fine in both the Runner and Monitor datafile sections.

I did see the error when I renamed the file type when selecting it in the file explorer.

image

Was your file originally saved as something else, like an .xls before changing it to a .csv - Just trying to think of ways that this could occur. Other non valid file types should be disabled in the explorer view when selecting them.

DannyDainton commented 2 years ago

Hey @sseenivasan89

Were you able to reliably recreate this issue again, I've still been unable to do this. 🤔

DannyDainton commented 2 years ago

I'm going to close this for now as I've been unable to recreate the error again. If we can get some reliable steps to reproduce the issue it help us to investigate this further.