javascriptfirebasecsvpostrapidminer

Trying Post CSV to Rapidminer WebServices


I'm stuck with a JS code since a few days, to send a CSV to my Rapidminer Webservice and get back the answer with the results.

I have the code hosted in a Firebase function to POST CSV to my WebService URL:

source code

For the web service I use a Read CSV to read the file that the user passes me in the POST.

The web service is configured to receive a UTF-8 text/xml and published in /api/rest/public/anonymous as a route to not need authentication.

I tried to invoke it from cmd with Curl by upload-files and it correctly returned the result in XML format.

So when I make the call with JS from my firebase I try to send a CSV but always without response from the server. rapidminer webservice

Error Firebase timeout function: firebase error

UPDATE:

The code is working locally but not on firebase server.

ERROR: ERROR FIREBASE


Solution

  • You could create a macro binding for the webservice and pass the information as a simple GET parameter (url?csv=foo,bar), then just use the "Create ExampleSet" operator with the generator type "comma separated text" and the %{csv} macro as "input csv text".

    That's probably not the most elegant way, but should at least work for your usecase.