-
-
Notifications
You must be signed in to change notification settings - Fork 658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notification from remote users fails because profile_id is null #1811
Comments
I dropped the not null constraint in the notifications table and I dont get any more the error when I favourite a pic from mastodon. |
I think the real issue is that |
Actually you're right but wasn't sure what it was supposed to get and if the profile_id could be null. |
Just to be clear, you were following a Pixelfed user from within Mastodon, right? |
Yeah my Pixelfed account from my Mastodon account. |
Nope, remote and local users have |
Somewhere around this line? pixelfed/app/Util/ActivityPub/Inbox.php Line 183 in 26c47a0
pixelfed/app/Util/ActivityPub/Inbox.php Lines 159 to 208 in 26c47a0
Tracing the actor fetch leads to this: pixelfed/app/Util/ActivityPub/Helpers.php Lines 381 to 432 in f7aeb8f
|
pixelfed/app/Util/ActivityPub/Inbox.php Lines 182 to 190 in 26c47a0
Here's the PostgreSQL error log created by this function call:
|
Hello. |
Hello,
It looks like when I try to follow from mastodon or maybe not directly linked, I get this message in my postgresql logs :
2019-11-04 12:53:56.486 CET [8126] user@pixelfed DETAIL: Failing row contains (24, null, null, null, null, null, null, 2019-11-04 11:53:56, 2019-11-04 11:53:56, null, null, null).
2019-11-04 12:53:56.486 CET [8126] user@pixelfed STATEMENT: insert into "notifications" ("updated_at", "created_at") values ($1, $2) returning "id"
I found in laravel.log also this :
2019-10-29 16:27:53] production.ERROR: SQLSTATE[23502]: Not null violation: 7 ERROR: null value in column "profile_id" violates not-null constraint
DETAIL: Failing row contains (13, null, null, null, null, null, null, 2019-10-29 16:27:53, 2019-10-29 16:27:53, null, null, null). (SQL: insert into "notifications" ("updated_at", "created_at") values (2019-10-29 16:27:53, 2019-10-29 16:27:53) returning "id") {"exception":"[object] (Illuminate\Database\QueryException(code: 23502): SQLSTATE[23502]: Not null violation: 7 ERROR: null value in column "profile_id" violates not-null constraint
DETAIL: Failing row contains (13, null, null, null, null, null, null, 2019-10-29 16:27:53, 2019-10-29 16:27:53, null, null, null). (SQL: insert into "notifications" ("updated_at", "created_at") values (2019-10-29 16:27:53, 2019-10-29 16:27:53) returning "id") at /html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664, Doctrine\DBAL\Driver\PDOException(code: 23502): SQLSTATE[23502]: Not null violation: 7 ERROR: null value in column "profile_id" violates not-null constraint
DETAIL: Failing row contains (13, null, null, null, null, null, null, 2019-10-29 16:27:53, 2019-10-29 16:27:53, null, null, null).
The text was updated successfully, but these errors were encountered: