wiztools / rest-client

Tool to test HTTP/RESTful webservices.
Apache License 2.0
1.53k stars 372 forks source link

Open recent request gives "File in unrecognised format!" error #43

Open ColinZou opened 8 years ago

ColinZou commented 8 years ago
screen shot 2016-01-15 at 9 25 38 am

The error was introduced when I try to open a request file from File -> Open Recent.

icnagy commented 8 years ago

Version 3.5 & 3.6 on OSX 10.10.5: also happens when you try to drag and drop a request file.

subwiz commented 8 years ago

Can you provide the .rcq file that is failing? Note, that the .rcq is just a XML file, you may also post the content of it by opening in a text editor.

icnagy commented 8 years ago

@subwiz sure. Please note that File->Open recent is also throwing format error.

This was saved with the latest 3.6 version:

<?xml version="1.0" encoding="UTF-8"?>
<rest-client version="3.6"><request><http-version>1.1</http-version><http-follow-redirects/><URL>http://localhost:3000/run_jobs</URL><method>POST</method><headers><header key="auth_token" value="test"/></headers><cookies><cookie name="auth_token" value="test" version="1"/></cookies><body><string content-type="application/x-www-form-urlencoded" charset="UTF-8">auth_token=test&amp;job_name=test_job</string></body></request></rest-client>

Process: Create a POST request with body and a header, save it then:

subwiz commented 8 years ago

Strange, because I am able to all these successfully (including opening the file you sent---via drag and drop, File>Open Request and File>Open Recent). I am running on Mac El Captain, RESTClient running on JVM:

FDLMC799:~ subhash$ java -version
java version "1.8.0_91"

Can you share the OS and JVM version details?

icnagy commented 8 years ago

@subwiz Thanks for looking into this!

I'm on OSX Yosemite 10.10.5

#  java -version
java version "1.8.0_72"
Java(TM) SE Runtime Environment (build 1.8.0_72-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.72-b15, mixed mode)