Strapi connector nodeJS - error downloadFile

Hello

I am running an instance of document server through Docker and i want to use the Strapi connector to connect the two. Strapi is running on port 1337 on the host machine. However when i open the file in Strapi to edit, document server throws this error:

at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1159:16)
[2022-12-09T08:42:56.041] [ERROR] [localhost] [1_Sample_test_6eb732bb0c1670497470199] [1] nodeJS - error downloadFile:url=http://localhost:1337/onlyoffice/file?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjEiLCJpYXQiOjE2NzA1NzUzNzMsImV4cCI6MTY3MDU3NTU1M30.xhDJKvDSCe-N9DjWUeVx0kytiXlS-dBA5PfUnPBxrI0;attempt=3;code:ECONNREFUSED;connect:undefined Error: connect ECONNREFUSED 127.0.0.1:1337
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1159:16)

Got it working, there was an issue with IP addresses between docker and the host machine.

However another issue came up, i can open up docx files, but i cant open oform and docxf files.

When i try to open the .oform file i see this:

image
This is what i get in strapi logs

Hello @georgkivivali
Sorry for the late reply.
We are glad that you solved IP addresses issue.
As for docxf\oform files support, unfortunately Strapi integration doesn’t support these file formats at the moment.
Please accept our sincere apologies.

@georgkivivali can you share what you did to resolve the issue of the ip address between docker and the host machine? I have a similar ECONNREFUSED issue with docker dev edition running in a container and a .net MVC app on the host in development.

I’m using the url host.docker.internal:[port on host machine where test website is running] and can’t get it to resolve within the container. Thanks!

Hello

I obtained my computer’s ipv4 address from ipconfig, then used that ip address in every connection aswell. The key is to use the IP’s themselves, as container also has a localhost.

Hello @bgarnier
As far as I see, you have contacted us via Zendesk already. Please continue the communication with colleagues of mine via Zendesk since you already have been in contact there.