#194 Argument 1 passed to Activitypub_profile::fromUri()

Closed
opened 3 years ago by aab · 5 comments
aab commented 3 years ago

2020-08-04 16:45:53 LOG_ERR: [khp.ignorelist.com:62553.7d14eb84 POST /inbox.json] Handled serverError (500) but cannot output into desired format (NULL): 'Argument 1 passed to Activitypub_profile::fromUri() must be of the type string, array given, called in /var/www/html/plugins/ActivityPub/lib/inbox_handler.php on line 279'

2020-08-04 16:45:53 LOG_ERR: [khp.ignorelist.com:62553.7d14eb84 POST /inbox.json] ServerErrorAction: 500 Argument 1 passed to Activitypub_profile::fromUri() must be of the type string, array given, called in /var/www/html/plugins/ActivityPub/lib/inbox_handler.php on line 279

2020-08-04 16:45:53 LOG_ERR: [khp.ignorelist.com:62553.7d14eb84 POST /inbox.json] Handled serverError (500) but cannot output into desired format (NULL): 'Argument 1 passed to Activitypub_profile::fromUri() must be of the type string, array given, called in /var/www/html/plugins/ActivityPub/lib/inbox_handler.php on line 279' 2020-08-04 16:45:53 LOG_ERR: [khp.ignorelist.com:62553.7d14eb84 POST /inbox.json] ServerErrorAction: 500 Argument 1 passed to Activitypub_profile::fromUri() must be of the type string, array given, called in /var/www/html/plugins/ActivityPub/lib/inbox_handler.php on line 279
Diogo Cordeiro commented 3 years ago
Owner

Oh, I had assumed the object on DELETE activities would always be a string, can you grab the part of the logs that state the received contents?

Oh, I had assumed the object on DELETE activities would always be a string, can you grab the part of the logs that state the received contents?
aab commented 3 years ago
Poster

Well, that's all that appears in gs logs...

EDIT: i still can see the error. I've enabled debug log in khp again, so i can give you more background.

Well, that's all that appears in gs logs... EDIT: i still can see the error. I've enabled debug log in khp again, so i can give you more background.
aab commented 3 years ago
Poster

Same error from gs.net, this time is debug log:

2020-08-05 10:33:27 LOG_DEBUG: [gnusocial.net:4522.2e298a13 POST /inbox.json] action.php - Server error '500' on 'apinbox': Argument 1 passed to Activitypub_profile::fromUri() must be of the type string, array given, called in /var/www/gnusocial/plugins/ActivityPub/lib/inbox_handler.php on line 279

2020-08-05 10:33:27 LOG_ERR: [gnusocial.net:4522.2e298a13 POST /inbox.json] Handled serverError (500) but cannot output into desired format (NULL): 'Argument 1 passed to Activitypub_profile::fromUri() must be of the type string, array given, called in /var/www/gnusocial/plugins/ActivityPub/lib/inbox_handler.php on line 279'

2020-08-05 10:33:27 LOG_ERR: [gnusocial.net:4522.2e298a13 POST /inbox.json] ServerErrorAction: 500 Argument 1 passed to Activitypub_profile::fromUri() must be of the type string, array given, called in /var/www/gnusocial/plugins/ActivityPub/lib/inbox_handler.php on line 279

Same error from gs.net, this time is debug log: 2020-08-05 10:33:27 LOG_DEBUG: [gnusocial.net:4522.2e298a13 POST /inbox.json] action.php - Server error '500' on 'apinbox': Argument 1 passed to Activitypub_profile::fromUri() must be of the type string, array given, called in /var/www/gnusocial/plugins/ActivityPub/lib/inbox_handler.php on line 279 2020-08-05 10:33:27 LOG_ERR: [gnusocial.net:4522.2e298a13 POST /inbox.json] Handled serverError (500) but cannot output into desired format (NULL): 'Argument 1 passed to Activitypub_profile::fromUri() must be of the type string, array given, called in /var/www/gnusocial/plugins/ActivityPub/lib/inbox_handler.php on line 279' 2020-08-05 10:33:27 LOG_ERR: [gnusocial.net:4522.2e298a13 POST /inbox.json] ServerErrorAction: 500 Argument 1 passed to Activitypub_profile::fromUri() must be of the type string, array given, called in /var/www/gnusocial/plugins/ActivityPub/lib/inbox_handler.php on line 279
Diogo Cordeiro commented 3 years ago
Owner

Managed to catch a full sample of this:

2020-08-05 16:25:13 LOG_DEBUG: [social.hackersatporto.com:505517.896443da POST /inbox.json] ActivityPub Inbox: Received a POST request.
2020-08-05 16:25:13 LOG_DEBUG: [social.hackersatporto.com:505517.896443da POST /inbox.json] ActivityPub Inbox: Request contents: {"@context":["https://www.w3.org/ns/activitystreams",{"ostatus":"http://ostatus.org#","atomUri":"ostatus:atomUri"}],"id":"https://anarchism.space/users/queeranarchism/statuses/104636634384945318#delete","type":"Delete","actor":"https://anarchism.space/users/queeranarchism","to":["https://www.w3.org/ns/activitystreams#Public"],"object":{"id":"https://anarchism.space/users/queeranarchism/statuses/104636634384945318","type":"Tombstone","atomUri":"https://anarchism.space/users/queeranarchism/statuses/104636634384945318"},"signature":{"type":"RsaSignature2017","creator":"https://anarchism.space/users/queeranarchism#main-key","created":"2020-08-05T11:52:24Z","signatureValue":"mAiNB3GGEJYHWl/PEHZs/1+vL4fLouPELoJej4ez4lDisn/4KXH7wO4a0z+pgAPrdcljMbHYJvI0/aMNePuQJElAi3YCiPgwkTTy7I7ca/PzuFuojKd/h8hXMDFyYGpDuPppXsOuonJxxLpXoow1wN/buhBVXtpxLgHyG6S5+DMBr8GaB3cu7kXizbVF+sko2CQ3SfXfqyQiXGmi2dHzhhGUql/p2vh8Ng1/bz6IR0FKwgP9mdFCgjougdD284JGIT5Yyw6PuUKhTgdkAuBvwSKzMYZGVUuZIbzX1uT/xNwu6hmdT20AOEMMfyAGa78OvzgbbJph8FrvjOs1WPDjbw=="}}
2020-08-05 16:25:13 LOG_DEBUG: [social.hackersatporto.com:505517.896443da POST /inbox.json] ActivityPub Explorer: Started now looking for https://anarchism.space/users/queeranarchism
2020-08-05 16:25:13 LOG_DEBUG: [social.hackersatporto.com:505517.896443da POST /inbox.json] ActivityPub Explorer: Searching locally for https://anarchism.space/users/queeranarchism offline.
2020-08-05 16:25:13 LOG_DEBUG: [social.hackersatporto.com:505517.896443da POST /inbox.json] ActivityPub Explorer: Found a local Aprofile for https://anarchism.space/users/queeranarchism
2020-08-05 16:25:13 LOG_DEBUG: [social.hackersatporto.com:505517.896443da POST /inbox.json] ActivityPub Inbox: HTTP Signature: Validation will now start!
2020-08-05 16:25:13 LOG_DEBUG: [social.hackersatporto.com:505517.896443da POST /inbox.json] ActivityPub Inbox: Request Headers: Array
(
    [Cdn-Loop] => cloudflare
    [Cf-Connecting-Ip] => 51.158.75.102
    [Cf-Request-Id] => 046109fcbb000008736ab7e200000001
    [Signature] => keyId="https://anarchism.space/users/queeranarchism#main-key",algorithm="rsa-sha256",headers="(request-target) host date digest content-type",signature="Q3wj7PQsVG9rko5gLlJO7STj2lgqte93i1BKoj7Reat19JLdOODyxRJsvqBJylLEg0NQKNLREDEHLjfnmUUWrX2Q3qe7BvJ9t1eC908BvByumT1pkj8fT79GmGhx5EeXX9EqRC87UvDKfd4nrKN0UoPA7raNklqHm+Cwkiv7GU5NHx2XT7deq/HypN+WBWesf+JXEsA0Z9grMnatGn5Ja19hX5IbgNvHlpNxTd6b2rlTG80f57dvhtNNTQPvtZxQ2T14Z9xzCfbjch12KA1mNxzq41mT27qhRi32B07Rw07BvldHnRdGoEYhwmuHB7Mo+NvlemQj4cDg/2KBgZXarg=="
    [Content-Type] => application/activity+json
    [Digest] => SHA-256=hOSuP0bM8Rpzz9X1jeNnxCWvSCAHoN5L66obYOMsf90=
    [Date] => Wed, 05 Aug 2020 16:25:13 GMT
    [User-Agent] => http.rb/4.3.0 (Mastodon/3.1.2; +https://anarchism.space/)
    [Cf-Visitor] => {"scheme":"https"}
    [X-Forwarded-Proto] => https
    [Content-Length] => 1026
    [Cf-Ray] => 5be1df745ada0873-CDG
    [X-Forwarded-For] => 51.158.75.102
    [Cf-Ipcountry] => FR
    [Accept-Encoding] => gzip
    [Connection] => Keep-Alive
    [Host] => social.hackersatporto.com
)

2020-08-05 16:25:13 LOG_DEBUG: [social.hackersatporto.com:505517.896443da POST /inbox.json] ActivityPub Inbox: HTTP Signature Data: Array
(
    [keyId] => https://anarchism.space/users/queeranarchism#main-key
    [algorithm] => rsa-sha256
    [headers] => (request-target) host date digest content-type
    [signature] => Q3wj7PQsVG9rko5gLlJO7STj2lgqte93i1BKoj7Reat19JLdOODyxRJsvqBJylLEg0NQKNLREDEHLjfnmUUWrX2Q3qe7BvJ9t1eC908BvByumT1pkj8fT79GmGhx5EeXX9EqRC87UvDKfd4nrKN0UoPA7raNklqHm+Cwkiv7GU5NHx2XT7deq/HypN+WBWesf+JXEsA0Z9grMnatGn5Ja19hX5IbgNvHlpNxTd6b2rlTG80f57dvhtNNTQPvtZxQ2T14Z9xzCfbjch12KA1mNxzq41mT27qhRi32B07Rw07BvldHnRdGoEYhwmuHB7Mo+NvlemQj4cDg/2KBgZXarg==
)

2020-08-05 16:25:13 LOG_DEBUG: [social.hackersatporto.com:505517.896443da POST /inbox.json] ActivityPub Inbox: HTTP Signature: Authorized request. Will now start the inbox handler.
2020-08-05 16:25:13 LOG_DEBUG: [social.hackersatporto.com:505517.896443da POST /inbox.json] action.php - Server error '500' on 'apinbox': Argument 1 passed to Activitypub_profile::fromUri() must be of the type string, array given, called in /var/www/social.hackersatporto.com/plugins/ActivityPub/lib/inbox_handler.php on line 279
2020-08-05 16:25:13 LOG_ERR: [social.hackersatporto.com:505517.896443da POST /inbox.json] Handled serverError (500) but cannot output into desired format (NULL): 'Argument 1 passed to Activitypub_profile::fromUri() must be of the type string, array given, called in /var/www/social.hackersatporto.com/plugins/ActivityPub/lib/inbox_handler.php on line 279'
2020-08-05 16:25:13 LOG_ERR: [social.hackersatporto.com:505517.896443da POST /inbox.json] ServerErrorAction: 500 Argument 1 passed to Activitypub_profile::fromUri() must be of the type string, array given, called in /var/www/social.hackersatporto.com/plugins/ActivityPub/lib/inbox_handler.php on line 279
Managed to catch a full sample of this: 2020-08-05 16:25:13 LOG_DEBUG: [social.hackersatporto.com:505517.896443da POST /inbox.json] ActivityPub Inbox: Received a POST request. 2020-08-05 16:25:13 LOG_DEBUG: [social.hackersatporto.com:505517.896443da POST /inbox.json] ActivityPub Inbox: Request contents: {"@context":["https://www.w3.org/ns/activitystreams",{"ostatus":"http://ostatus.org#","atomUri":"ostatus:atomUri"}],"id":"https://anarchism.space/users/queeranarchism/statuses/104636634384945318#delete","type":"Delete","actor":"https://anarchism.space/users/queeranarchism","to":["https://www.w3.org/ns/activitystreams#Public"],"object":{"id":"https://anarchism.space/users/queeranarchism/statuses/104636634384945318","type":"Tombstone","atomUri":"https://anarchism.space/users/queeranarchism/statuses/104636634384945318"},"signature":{"type":"RsaSignature2017","creator":"https://anarchism.space/users/queeranarchism#main-key","created":"2020-08-05T11:52:24Z","signatureValue":"mAiNB3GGEJYHWl/PEHZs/1+vL4fLouPELoJej4ez4lDisn/4KXH7wO4a0z+pgAPrdcljMbHYJvI0/aMNePuQJElAi3YCiPgwkTTy7I7ca/PzuFuojKd/h8hXMDFyYGpDuPppXsOuonJxxLpXoow1wN/buhBVXtpxLgHyG6S5+DMBr8GaB3cu7kXizbVF+sko2CQ3SfXfqyQiXGmi2dHzhhGUql/p2vh8Ng1/bz6IR0FKwgP9mdFCgjougdD284JGIT5Yyw6PuUKhTgdkAuBvwSKzMYZGVUuZIbzX1uT/xNwu6hmdT20AOEMMfyAGa78OvzgbbJph8FrvjOs1WPDjbw=="}} 2020-08-05 16:25:13 LOG_DEBUG: [social.hackersatporto.com:505517.896443da POST /inbox.json] ActivityPub Explorer: Started now looking for https://anarchism.space/users/queeranarchism 2020-08-05 16:25:13 LOG_DEBUG: [social.hackersatporto.com:505517.896443da POST /inbox.json] ActivityPub Explorer: Searching locally for https://anarchism.space/users/queeranarchism offline. 2020-08-05 16:25:13 LOG_DEBUG: [social.hackersatporto.com:505517.896443da POST /inbox.json] ActivityPub Explorer: Found a local Aprofile for https://anarchism.space/users/queeranarchism 2020-08-05 16:25:13 LOG_DEBUG: [social.hackersatporto.com:505517.896443da POST /inbox.json] ActivityPub Inbox: HTTP Signature: Validation will now start! 2020-08-05 16:25:13 LOG_DEBUG: [social.hackersatporto.com:505517.896443da POST /inbox.json] ActivityPub Inbox: Request Headers: Array ( [Cdn-Loop] => cloudflare [Cf-Connecting-Ip] => 51.158.75.102 [Cf-Request-Id] => 046109fcbb000008736ab7e200000001 [Signature] => keyId="https://anarchism.space/users/queeranarchism#main-key",algorithm="rsa-sha256",headers="(request-target) host date digest content-type",signature="Q3wj7PQsVG9rko5gLlJO7STj2lgqte93i1BKoj7Reat19JLdOODyxRJsvqBJylLEg0NQKNLREDEHLjfnmUUWrX2Q3qe7BvJ9t1eC908BvByumT1pkj8fT79GmGhx5EeXX9EqRC87UvDKfd4nrKN0UoPA7raNklqHm+Cwkiv7GU5NHx2XT7deq/HypN+WBWesf+JXEsA0Z9grMnatGn5Ja19hX5IbgNvHlpNxTd6b2rlTG80f57dvhtNNTQPvtZxQ2T14Z9xzCfbjch12KA1mNxzq41mT27qhRi32B07Rw07BvldHnRdGoEYhwmuHB7Mo+NvlemQj4cDg/2KBgZXarg==" [Content-Type] => application/activity+json [Digest] => SHA-256=hOSuP0bM8Rpzz9X1jeNnxCWvSCAHoN5L66obYOMsf90= [Date] => Wed, 05 Aug 2020 16:25:13 GMT [User-Agent] => http.rb/4.3.0 (Mastodon/3.1.2; +https://anarchism.space/) [Cf-Visitor] => {"scheme":"https"} [X-Forwarded-Proto] => https [Content-Length] => 1026 [Cf-Ray] => 5be1df745ada0873-CDG [X-Forwarded-For] => 51.158.75.102 [Cf-Ipcountry] => FR [Accept-Encoding] => gzip [Connection] => Keep-Alive [Host] => social.hackersatporto.com ) 2020-08-05 16:25:13 LOG_DEBUG: [social.hackersatporto.com:505517.896443da POST /inbox.json] ActivityPub Inbox: HTTP Signature Data: Array ( [keyId] => https://anarchism.space/users/queeranarchism#main-key [algorithm] => rsa-sha256 [headers] => (request-target) host date digest content-type [signature] => Q3wj7PQsVG9rko5gLlJO7STj2lgqte93i1BKoj7Reat19JLdOODyxRJsvqBJylLEg0NQKNLREDEHLjfnmUUWrX2Q3qe7BvJ9t1eC908BvByumT1pkj8fT79GmGhx5EeXX9EqRC87UvDKfd4nrKN0UoPA7raNklqHm+Cwkiv7GU5NHx2XT7deq/HypN+WBWesf+JXEsA0Z9grMnatGn5Ja19hX5IbgNvHlpNxTd6b2rlTG80f57dvhtNNTQPvtZxQ2T14Z9xzCfbjch12KA1mNxzq41mT27qhRi32B07Rw07BvldHnRdGoEYhwmuHB7Mo+NvlemQj4cDg/2KBgZXarg== ) 2020-08-05 16:25:13 LOG_DEBUG: [social.hackersatporto.com:505517.896443da POST /inbox.json] ActivityPub Inbox: HTTP Signature: Authorized request. Will now start the inbox handler. 2020-08-05 16:25:13 LOG_DEBUG: [social.hackersatporto.com:505517.896443da POST /inbox.json] action.php - Server error '500' on 'apinbox': Argument 1 passed to Activitypub_profile::fromUri() must be of the type string, array given, called in /var/www/social.hackersatporto.com/plugins/ActivityPub/lib/inbox_handler.php on line 279 2020-08-05 16:25:13 LOG_ERR: [social.hackersatporto.com:505517.896443da POST /inbox.json] Handled serverError (500) but cannot output into desired format (NULL): 'Argument 1 passed to Activitypub_profile::fromUri() must be of the type string, array given, called in /var/www/social.hackersatporto.com/plugins/ActivityPub/lib/inbox_handler.php on line 279' 2020-08-05 16:25:13 LOG_ERR: [social.hackersatporto.com:505517.896443da POST /inbox.json] ServerErrorAction: 500 Argument 1 passed to Activitypub_profile::fromUri() must be of the type string, array given, called in /var/www/social.hackersatporto.com/plugins/ActivityPub/lib/inbox_handler.php on line 279
Diogo Cordeiro commented 3 years ago
Owner

Fixed with efdc7d9ba0

Fixed with https://notabug.org/diogo/gnu-social/commit/efdc7d9ba045101b867fd849d3f64fa89b5d13f7
Sign in to join this conversation.
No Milestone
No assignee
2 Participants
Loading...
Cancel
Save
There is no content yet.