papercups-io / papercups

Open-source live customer chat
https://app.papercups.io/demo
MIT License
5.76k stars 525 forks source link

Failed to delete customer. Please try again later. #958

Open sooluh opened 3 years ago

sooluh commented 3 years ago

Chronology

When I want to delete customer data using the API client I'm trying to build, I get an Internal Server Error response.

I tried to check it but I didn't find any error in the script I wrote, and I tried to delete it from the Papercups panel, but the response I received was Failed to delete customer. Please try again later.

I also looked at Network in DevTools, and it was true, it was Internal Server Error. I have attached the screenshot here.

Expected behavior

Of course I was expecting a "successfully delete customer data" response, hehe

Screenshots

The screenshot above I got from the API Client that I'm making and I tested it using CodeIgniter 4
The screenshot above me is from the Papercups panel, hehe

Additional context

Btw, the API client I'm building I put here. Thanks.

reichert621 commented 3 years ago

thanks for flagging this @sooluh! looks like it's a foreign key constraint issue... we'll try to have a fix out soon! (probably next week)

reichert621 commented 3 years ago

love your php library btw! 🎉

sooluh commented 3 years ago

well, I'm not in too much of a hurry for that, you're welcome. for your compliments to my library, I am very happy, thank you 😀