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

"Error reading data file. Error: Could not determine format of file." when uploadin JSON or CSV file in Runner after update to 4.9.0 #2514

Closed
karinamkl opened this issue Dec 2, 2016 · 6 comments

Comments

@karinamkl
Copy link

  1. Postman Version: 4.9.0
  2. App (Chrome app or Mac app): Windows desktop app
  3. OS details: Windows 7 Professional
  4. Is the Interceptor on and enabled in the app: (only in Chrome app - off)
  5. Did you encounter this recently, or has this bug always been there: in v.4.7.2 when uploading JSON file was getting error that app is unable to determine format but could manually select format from dropdown
  6. Expected behaviour: JSON file gets uploaded in Runner
  7. Console logs (http://blog.getpostman.com/2014/01/27/enabling-chrome-developer-tools-inside-postman/ for the Chrome App, View->Toggle Dev Tools for the Mac app):
  8. Screenshots (if applicable)
    https://cloud.githubusercontent.com/assets/20668526/20837822/ccc4c3d2-b873-11e6-9e0b-dbbe435aa51e.png
@karinamkl karinamkl changed the title "Error reading data file. Error: Could not determine format of file." when uploadin JSON or CSV in Runner file after update to 4.9.0 "Error reading data file. Error: Could not determine format of file." when uploadin JSON or CSV file in Runner after update to 4.9.0 Dec 2, 2016
@numaanashraf
Copy link
Member

Hi @karinamkl, thanks for reporting this. Could you mail a sample of the JSON you are facing issues with to help@getpostman.com? We'll help you get this sorted.

@karinamkl
Copy link
Author

karinamkl commented Dec 2, 2016

Hi @numaanashraf sent files to help@getpostman.com

@a85 a85 added the bug label Dec 3, 2016
@davecanderson
Copy link

davecanderson commented Dec 4, 2016

I have the same issue loading a CSV. If you ignore the error the collection will run and complete the selected number of iterations however it uses the first line in the CSV for all the iterations. As a result I've not been able to test the new feature for 0 iterations using all the lines in the file; #1342. Selecting 0 just runs a single iteration using the data from the first line.

I've mailed my collection, data, environment and run result to help@getpostman.com.

EDIT: My normal installation prompted me to upgrade which I did. I've now uninstalled Postman (Windows x64) and reinstalled the Canary channel. I now get the Data File Type and Preview controls which were not present before. The file format error is only shown when clicking Preview but the issues running the collection persits.

Testing using 0 for the iterations appears to run a single iteration. Afterwards the recent run list shows a running collection (in blue) and the details have no requests and the progress % is NaN. You can't Stop Run so you have to delete the recent run.

I'm unsure if this is related or just not a feature but inspecting the run results none of the Request information has been populated with the data used in the iteration.
postman-run-result

@sdnts
Copy link

sdnts commented Dec 5, 2016

@karinamkl @davecanderson We've released a fix for this, and you should be able to use your CSV files properly now. Can you update your app to the latest version (4.9.1) and verify if the fix works for you?

@karinamkl
Copy link
Author

@numaanashraf Updated for version 4.9.1 and I'm able to attach/preview JSON and CSV files and run collection with them successfully. Also able to see array of objects from JSON in preview.

@sdnts sdnts closed this as completed Dec 5, 2016
@abhijitkane abhijitkane removed the bug label Dec 5, 2016
@Negatseg
Copy link

hello, I face the same challenge when I try to import my folder to post man. would you help me out on that It says 'could not determine format'.

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

7 participants