Skip to main content
Question

REST API Cannot upload files

  • January 22, 2025
  • 1 reply
  • 83 views

johannafalk1
Contributor
Forum|alt.badge.img+8

Hello community,

I am currently facing problems uploading files to FME Flow. Previously I was handling this with a “FMEFlowResourceConnector”. One of our instances was now updated to version FME Flow 2024.2 (Build 24783 - win64).

As the transformer “FMEFlowResourceConnector” was deprecated in FME 2024.1.0 (and it anyway refused to work with the transformer) I tried to go directly through the Flow REST API with a POST request.

 

My request:

/fmerest/v3/resources/connections/{connection}/filesys/{path}

In my concrete example:

/fmerest/v3/resources/connections/FME_SHAREDRESOURCE_DATA/filesys/Test

 

I get this as a response:

"message": "Error communicating with FME Flow host XXXXXX.\nContact your FME Flow administrator who can investigate the log files for further details.\nAlso see: http://fme.ly/e100007#error-communicating-with-fme-server-hostConnection refused: connect"

 

However, when I try the same approach on my local installed Flow (same version), it works using this POST request.

 

Does anyone have an idea, what could be the problem?

Unfortunately I couldn’t find anything useful related to the error message above.

 

I also tried with v4, and there I also cannot even make it work on my local machine. 

This is my request: 

fmeapiv4/resources/connections/{connection}/upload?overwrite=false&path=%2FTest

Response: 

"message": "The required parameter \"files\" was not found in the request."

 

Thanks for your help! 

 

1 reply

johannafalk1
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • January 31, 2025

Restarting the services solved the problem. 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings