listmonk icon indicating copy to clipboard operation
listmonk copied to clipboard

Importing suscribers wia frontend not working

Open pierreneillo opened this issue 10 months ago • 10 comments

Version:

  • listmonk: [4.1.0~ynh2] (installed via Yunohost)
  • OS: [Debian 11 (bullseye)]

When importing new subscribers (admin/subscribers/import), the import either gets stopped or starts and then doesn't seem to do anything.

Import settings:

  • Mode: subscribe
  • Status: Unconfirmed
  • Overwrite: Yes
  • Delimiter: ,

Lists: Default list

csv file used:

email,name
[email protected],"User One"

The first time Upload is clicked, the message "stopped request" is received, the second time the request loops.

Screenshots:

Stopped request:

Image

Never-ending request:

Image

pierreneillo avatar Feb 25 '25 12:02 pierreneillo

That's strange. I'm unable to reproduce this issue. Could you please try the attached dummy CSV (which I've confirmed to work on my local setup)?

subs.csv

knadh avatar Feb 26 '25 05:02 knadh

Aside: Spotted a regression/bug where the actual log output from the importer is no longer rendered in the textbox. It just shows whitespaces.

knadh avatar Feb 26 '25 05:02 knadh

Hello, i tested with your csv file, and it works, although it works only the second time, the first time it tells "stop request received". It still doesn't work my my actual csv files and i think the issue might be with the order of the fields in the csv file or the format, which fields are mandatory and which should/can be quoted? I checked, i have the exact same encoding and carriage return and line feed as in your dummy file.

pierreneillo avatar Feb 26 '25 11:02 pierreneillo

I was facing this exact same issue, with the EXACT same behaviour. Even with the test file subs.csv, it failed the first time then worked when I tried again.

I was then gearing up to try import via API and created an API user....then it started suddenly working after creating the API user! :-( I tried deleting the API user to see if the import failure and request looping could come back but no, it did not. I've deleted and uploaded the list I have multiple times and cannot get it to fail any more...which is frustrating because there is a bug here but I just don't know how to properly reproduce.

At this point my guess is something that was cached finally got cleared (I was hard-refreshing the page but didn't manually delete localstorage). Either that or for some reason you need to create an API user to "jolt" the import feature to work which makes even less sense and I can't imagine how the two would be related..... .... .... .... Aaaaah I think I figured out what happened. Creating the api user caused the app to reload! It makes more sense that triggering a reload fixes the issue. I guess you can do that in a variety of ways e.g. saving settings, restarting the container (because in my case, running it with docker).

Sorry for the long read, just decided to leave my entire thought process here in case any other detail can help troubleshoot this further. For now my best guess is a restart or making the app reload helps fix the issue. I dunno what a reload does under the hood but I guess cache also gets cleared in the process. Again sorry for the ramble but hope it helps.

kmbuthia avatar Mar 25 '25 14:03 kmbuthia

Hi, I didn't create the api user and it started randomly working (sorry I didn't say it bc i had no fix for the bug).

I reloaded the service manually several times while the bug was there and it didn't change anything.

pierreneillo avatar Mar 25 '25 15:03 pierreneillo

Then I truly do not know. Keep trying until it works I guess. I still think cache and/or reloading helps...if I do encounter the challenge again I'll share what I can.

kmbuthia avatar Mar 25 '25 16:03 kmbuthia

hm, I am unable to reproduce this locally no matter how many times I try. I'm using the sample subs.csv attached earlier.

  • Fresh install, import.
  • Click Done, and do another import. Repeat multiple times.
  • Restart, import.

Please open the browser network inspector (F12) on the import page. When you click upload and it fails, please note which requests are failing and with what error code (XHR request type). Clicking on the failed request will show the response that came from the server. Please copy-paste that include that as well.

knadh avatar Mar 29 '25 07:03 knadh

I've the exact same issue. (Listmonk 4.1) using both webui or curl API request.

m4hmudftw avatar Apr 01 '25 15:04 m4hmudftw

Hi,

As i no longer have the problem on my setup, could you give info on your setup and tell whether it is a clean install or not for reproducibility

pierreneillo avatar Apr 01 '25 16:04 pierreneillo

My setup :

Docker container (with nginx & supervisord) on Mesos/Marathon cluster. I've been able to make it work just after restart.

m4hmudftw avatar Apr 02 '25 07:04 m4hmudftw

This issue has been marked 'stale' after 90 days of inactivity. If there is no further activity, it will be closed in 7 days.

github-actions[bot] avatar Jul 02 '25 02:07 github-actions[bot]