#190 PHP Fatal error - explorer.php lines 292 and 344

Closed
opened 4 years ago by aab · 4 comments
aab commented 4 years ago
PHP Fatal error:  Uncaught TypeError: Argument 1 passed to Activitypub_explorer::validate_remote_response() must be of the type array, null given, called in /var/www/gnusocial/plugins/ActivityPub/lib/explorer.php on line 344 and defined in /var/www/gnusocial/plugins/ActivityPub/lib/explorer.php:292
Stack trace:
#0 /var/www/gnusocial/plugins/ActivityPub/lib/explorer.php(344): Activitypub_explorer::validate_remote_response(NULL)
#1 /var/www/gnusocial/plugins/ActivityPub/classes/Activitypub_profile.php(282): Activitypub_explorer::get_actor_inboxes_uri('https://gnusoci...')
#2 /var/www/gnusocial/plugins/ActivityPub/classes/Activitypub_profile.php(223): Activitypub_profile::create_from_local_profile(Object(Profile))
#3 /var/www/gnusocial/plugins/ActivityPub/classes/Activitypub_profile.php(256): Activitypub_profile::from_profile(Object(Profile))
#4 /var/www/gnusocial/plugins/ActivityPub/lib/activitypubqueuehandler.php(73): Activitypub_profile::from_profile_collection(Array)
#5 /var/www/gnusocial/plugins/RedisQueue/classes/RedisQueue in /var/www/gnusocial/plugins/ActivityPub/lib/explorer.php on line 292
```` PHP Fatal error: Uncaught TypeError: Argument 1 passed to Activitypub_explorer::validate_remote_response() must be of the type array, null given, called in /var/www/gnusocial/plugins/ActivityPub/lib/explorer.php on line 344 and defined in /var/www/gnusocial/plugins/ActivityPub/lib/explorer.php:292 Stack trace: #0 /var/www/gnusocial/plugins/ActivityPub/lib/explorer.php(344): Activitypub_explorer::validate_remote_response(NULL) #1 /var/www/gnusocial/plugins/ActivityPub/classes/Activitypub_profile.php(282): Activitypub_explorer::get_actor_inboxes_uri('https://gnusoci...') #2 /var/www/gnusocial/plugins/ActivityPub/classes/Activitypub_profile.php(223): Activitypub_profile::create_from_local_profile(Object(Profile)) #3 /var/www/gnusocial/plugins/ActivityPub/classes/Activitypub_profile.php(256): Activitypub_profile::from_profile(Object(Profile)) #4 /var/www/gnusocial/plugins/ActivityPub/lib/activitypubqueuehandler.php(73): Activitypub_profile::from_profile_collection(Array) #5 /var/www/gnusocial/plugins/RedisQueue/classes/RedisQueue in /var/www/gnusocial/plugins/ActivityPub/lib/explorer.php on line 292 ````
Diogo Cordeiro commented 4 years ago
Owner

Invalid json format but ok status code. I suppose that remote instance was having some issue, the code seems fine.

Invalid json format but `ok` status code. I suppose that remote instance was having some issue, the code seems fine.
aab commented 4 years ago
Poster

Well, i have 2 or 3 of these per minute:

2020-07-23 12:48:55 LOG_DEBUG: [gnusocial.net:12761.73652218 POST /inbox.json] action.php - Server error '500' on 'apinbox': Argument 1 passed to Activitypub_explorer::validate_remote_response() must be of the type array, null given, called in /var/www/gnusocial/plugins/ActivityPub/lib/explorer.php on line 229

2020-07-23 12:48:55 LOG_ERR: [gnusocial.net:12761.73652218 POST /inbox.json] Handled serverError (500) but cannot output into desired format (NULL): 'Argument 1 passed to Activitypub_explorer::validate_remote_response() must be of the type array, null given, called in /var/www/gnusocial/plugins/ActivityPub/lib/explorer.php on line 229'

2020-07-23 12:48:55 LOG_ERR: [gnusocial.net:12761.73652218 POST /inbox.json] ServerErrorAction: 500 Argument 1 passed to Activitypub_explorer::validate_remote_response() must be of the type array, null given, called in /var/www/gnusocial/plugins/ActivityPub/lib/explorer.php on line 229
Well, i have 2 or 3 of these per minute: ```` 2020-07-23 12:48:55 LOG_DEBUG: [gnusocial.net:12761.73652218 POST /inbox.json] action.php - Server error '500' on 'apinbox': Argument 1 passed to Activitypub_explorer::validate_remote_response() must be of the type array, null given, called in /var/www/gnusocial/plugins/ActivityPub/lib/explorer.php on line 229 2020-07-23 12:48:55 LOG_ERR: [gnusocial.net:12761.73652218 POST /inbox.json] Handled serverError (500) but cannot output into desired format (NULL): 'Argument 1 passed to Activitypub_explorer::validate_remote_response() must be of the type array, null given, called in /var/www/gnusocial/plugins/ActivityPub/lib/explorer.php on line 229' 2020-07-23 12:48:55 LOG_ERR: [gnusocial.net:12761.73652218 POST /inbox.json] ServerErrorAction: 500 Argument 1 passed to Activitypub_explorer::validate_remote_response() must be of the type array, null given, called in /var/www/gnusocial/plugins/ActivityPub/lib/explorer.php on line 229 ````
aab reopened 4 years ago
Diogo Cordeiro commented 4 years ago
Owner
There is no content yet.
Diogo Cordeiro commented 4 years ago
Owner

Should be solved with 0def5f1dca .

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