user
11/10/2022, 10:20 PMuser
12/12/2022, 9:54 PMGitHub
12/26/2022, 2:53 PMGitHub
01/06/2023, 9:29 AMuser
01/12/2023, 9:59 PMuser
02/23/2023, 1:31 PMuser
04/12/2023, 2:50 PMCannot read property 'contentWindow' of undefined
undefined is not an object (evaluating 'n.iframeRef.contentWindow')It looks like it's tracing back to chat-widget/src/components/EmbeddableWidget.tsx Lines 238 to 240 in </papercups-io/chat-widget/commit/c7e70fda7adbceeba5d122492a18e80d3bca4be8|c7e70fd>
<Helmet>
<script>
{`
window.Papercups = {
config: {
accountId: 'my-account-id',
title: 'Welcome!',
subtitle: 'Ask us anything in the chat window below 😊',
primaryColor: '#1c64f2',
greeting: '',
newMessagePlaceholder: 'Start typing...',
baseUrl: '<https://app.papercups.io>'
},
};
`}
</script>
<script
type="text/javascript"
async
defer
src="https://app.papercups.io/widget.js"
></script>
</Helmet>
Does my config look right? Should I switch over to @papercups-io/chat-widget
?
papercups-io/chat-widgetuser
06/20/2023, 8:54 PMuser
06/21/2023, 9:18 AMuser
06/29/2023, 6:31 AMFailed to load resource: the server responded with a status of 401 (Unauthorized) <http://url-redacted.com/api/upload|url-redacted.com/api/upload>
papercups-io/papercupsuser
07/03/2023, 3:09 PMuser
07/15/2023, 10:57 PMmix test
☐ Ran mix format
☐ No frontend compilation warnings
papercups-io/papercupsuser
08/16/2023, 12:00 PMsend▾
currect▾
user
08/25/2023, 5:37 AMuser
10/19/2023, 12:13 PMimage▾
user
10/19/2023, 12:15 PMmix test
☐ Ran mix format
☐ No frontend compilation warnings
papercups-io/papercupsuser
01/13/2024, 6:46 PMmix test
☐ Ran mix format
☐ No frontend compilation warnings
papercups-io/papercupsuser
02/15/2024, 5:21 AMmix test
☐ Ran mix format
☐ No frontend compilation warnings
papercups-io/papercupsuser
02/23/2024, 8:03 PMClient #PID<0.758.0> is still using a connection from owner at location:
:prim_inet.send_recv_reply/2
(postgrex 0.15.5) lib/postgrex/protocol.ex:2918: Postgrex.Protocol.do_send/3
(postgrex 0.15.5) lib/postgrex/protocol.ex:1858: Postgrex.Protocol.rebind_execute/4
(ecto_sql 3.4.5) lib/ecto/adapters/sql/sandbox.ex:370: Ecto.Adapters.SQL.Sandbox.Connection.proxy/3
(db_connection 2.2.2) lib/db_connection/holder.ex:316: DBConnection.Holder.holder_apply/4
(db_connection 2.2.2) lib/db_connection.ex:1255: DBConnection.run_execute/5
(db_connection 2.2.2) lib/db_connection.ex:1342: DBConnection.run/6
(db_connection 2.2.2) lib/db_connection.ex:595: DBConnection.execute/4
(ecto_sql 3.4.5) lib/ecto/adapters/postgres/connection.ex:80: Ecto.Adapters.Postgres.Connection.execute/4
(ecto_sql 3.4.5) lib/ecto/adapters/sql.ex:544: Ecto.Adapters.SQL.execute!/4
(ecto_sql 3.4.5) lib/ecto/adapters/sql.ex:526: Ecto.Adapters.SQL.execute/5
(ecto 3.4.6) lib/ecto/repo/queryable.ex:192: Ecto.Repo.Queryable.execute/4
(ecto 3.4.6) lib/ecto/repo/queryable.ex:17: Ecto.Repo.Queryable.all/3
(chat_api 0.1.0) lib/chat_api/conversations/helpers.ex:22: ChatApi.Conversations.Helpers.broadcast_conversation_updates_to_slack/1
(elixir 1.10.4) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
(stdlib 3.13) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
The connection itself was checked out by #PID<0.758.0> at location:
(ecto_sql 3.4.5) lib/ecto/adapters/postgres/connection.ex:80: Ecto.Adapters.Postgres.Connection.execute/4
(ecto_sql 3.4.5) lib/ecto/adapters/sql.ex:544: Ecto.Adapters.SQL.execute!/4
(ecto_sql 3.4.5) lib/ecto/adapters/sql.ex:526: Ecto.Adapters.SQL.execute/5
(ecto 3.4.6) lib/ecto/repo/queryable.ex:192: Ecto.Repo.Queryable.execute/4
(ecto 3.4.6) lib/ecto/repo/queryable.ex:17: Ecto.Repo.Queryable.all/3
(chat_api 0.1.0) lib/chat_api/conversations/helpers.ex:22: ChatApi.Conversations.Helpers.broadcast_conversation_updates_to_slack/1
(elixir 1.10.4) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
(stdlib 3.13) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
To Reproduce
Steps to reproduce the behavior:
1. Run mix test
Expected behavior
It should not show those errors
Additional context
I think the issue is in the slack_controller_test.exs
. If you run mix test test/chat_api_web/controllers/slack_controller_test.exs
this command it'll show the error above.
You can also see the errors here https://github.com/papercups-io/papercups/pull/613/checks?check_run_id=2027280678#step:6:350
papercups-io/papercups