papercups-io / papercups

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

Papercups down on Heroku - node 18 #1024

Open durdevic opened 3 months ago

durdevic commented 3 months ago

First of, thanks for keeping this repo available for all of us, I appreciate it a lot!

Quick question for some of the maintainers, would it be possible to update the code to be able to be deployed on heroku-20, since the heroku-18 is depricated. Also for a possible redeploy on app.papercups.io

https://help.heroku.com/X5OE6BCA/heroku-18-end-of-life-faq

I tried building my own version but I also got an error there and not sure how to move forward from there.

Any help would be amazing 🎉

ericdude4 commented 3 months ago

Any update here? Papercups down on my app :(

durdevic commented 3 months ago

I moved to crisp.chat

If ppcups is back I'll think about switching back, but can't wait for that.

They made a great work, great that it lasted for so long for free

ronaldsantos97s commented 3 months ago

I noticed Papercups is down on my app too. I'd love for a redeploy on app.papercups.io image (15)

Do you know if we can self-host Papercups such that we don't need to ping Papercup's servers? If so, are there any requirements to self-host?

Thank you!

Demoxing commented 3 months ago

I noticed Papercups is down on my app too. I'd love for a redeploy on app.papercups.io image (15)

Do you know if we can self-host Papercups such that we don't need to ping Papercup's servers? If so, are there any requirements to self-host?

Thank you!

Same issue. Isn't it possible to host it ourselves? What kind of FOSS project is this if we have to rely on them for their service? Have you found any solution?

identang commented 2 months ago

I noticed Papercups is down on my app too. I'd love for a redeploy on app.papercups.io image (15)

Do you know if we can self-host Papercups such that we don't need to ping Papercup's servers? If so, are there any requirements to self-host?

Thank you!

Yeah, Papercups is also down on my app. I wish I can get it back as soon as possible. It would be great if we can self-host it.

michalkow commented 2 months ago

I knew Papercups was abandoned as a project, but I did not realize that React (Native) widgets depend on chat-widget.papercups.io domain... Is there a way to just point to the self-hosted domain for the widgets as well? Is the chat-widget.papercups.io down temporarily or did it shut down for good this time?

durdevic commented 2 months ago

Guys already wrote in the README file,

Papercups is in maintenance mode. This means there won't be any major new features in the near future. We will still accept pull requests and conduct major bug fixes

So either someone picks this up or it's gone.

Nice of them that they left it open, big appreciation for that tbh

johncadengo commented 2 months ago

@durdevic completely understood, but what I think people were hoping for was this:

We will still [...] conduct major bug fixes

I think it's reasonable to see that if the project stops working, it's a bug.

durdevic commented 2 months ago

Fair, but the message is from Jan 2022, so 2 years ago.

If your project failed and you needed to move on, I think it takes a huge chunk of your painful heart to still maintain something that doesn't bring you anything in that moment, at least would be for me.

Simply I understand the guys, thus, if something happens nice, regardless, I'm grateful for what they did so far.

michalkow commented 2 months ago

OK, I figured out how to self-host the chat widget iframe. If you get Failed to load: chat-widget.papercups.io here are the steps you need to take (requires a Vercel account):

  1. Fork this repo: https://github.com/papercups-io/chat-window
  2. Create new Vercel project from the git repo you just forked
  3. Add NODE_OPTIONS=--openssl-legacy-provider to Environment Variables in project Settings
  4. (Re)deploy from the git repo
  5. Grab the domain URL assigned to you by Vercel and add it as iframeUrlOverride parameter to your ChatWidget component.
0x2b3bfa0 commented 2 months ago

Successfully deployed on Heroku following https://github.com/papercups-io/papercups/issues/1024#issuecomment-2210898044, but also had to patch papercups-io/chat-window@0732357/package.json:10 like this:

-     "start": "next start -p 8080"
+     "start": "next start -p $PORT"
identang commented 2 months ago

OK, I figured out how to self-host the chat widget iframe. If you get Failed to load: chat-widget.papercups.io here are the steps you need to take (requires a Vercel account):

  1. Fork this repo: https://github.com/papercups-io/chat-window
  2. Create new Vercel project from the git repo you just forked
  3. Add NODE_OPTIONS=--openssl-legacy-provider to Environment Variables in project Settings
  4. (Re)deploy from the git repo
  5. Grab the domain URL assigned to you by Vercel and add it as iframeUrlOverride parameter to your ChatWidget component.

We didn't get 404 error anymore after deploying the code to Vercel and adding the link to iframeUrlOverride param. However, we ran into an errorError: An account token is required to render the Papercups chat widget! even we double checked we put the token as a param. Does anyone have the same issue here?

0x2b3bfa0 commented 2 months ago

I didn't have this issue. 🤔

michalkow commented 2 months ago

@identang Are you self-hosting Papercups App as well? Make sure that accountId and baseUrl props are set correctly.

identang commented 2 months ago

@identang Are you self-hosting Papercups App as well? Make sure that accountId and baseUrl props are set correctly.

Yes, we are trying to self-hosting papercups as well. I am sure about the correctness of both. We use the same accountId and baseUrl before it was down and it worked. Let me double check it to make sure that.

GildedHonour commented 1 month ago

Calmaos :) Atención!

I'm working on it; have rewritten some parts, refactored others. Some things don't work such as the bloody React part which I'm rewritting altogether. Once it's more or less done, I'll notify you.