[GH-ISSUE #1052] E020: Could not parse server response. #695

Closed
opened 2026-02-25 22:37:51 +03:00 by kerem · 5 comments
Owner

Originally created by @0cwa on GitHub (Feb 26, 2022).
Original GitHub issue: https://github.com/floccusaddon/floccus/issues/1052

Describe the bug

Receive Error: E020: Could not parse server response. Is the bookmarks app installed on your server? JSON.parse: unexpected character at line 1 column 1 of the JSON data

It might be a result of charset issues, I have a lot of bookmarks, but I already ran the emoji troubleshooting.
The strange characters I have besides emojis (which are displaying fine in my nextcloud folder) are: · ® and •

I'm pretty sure this is linked to #992 ?

It seems like the bookmarks still upload? But I'm not sure b/c I'm also using the Android app and they may have uploaded from there...

To Reproduce

Sync ( 1000 bookmarks, maybe some odd characters exist )

Expected behavior

No error

Screenshots

Desktop

  • OS: Linux
  • Browser Firefox
  • Browser Version 97.0
  • Floccus version: 4.10.1
  • Floccus sync method: Nextcloud Folder

Server

  • OS: Debian 11 Yunohost
  • Nextcloud version: 23.0.0
  • Bookmarks app version: 10.0.3

Debug log

Uploaded to: https://cloud.marcelklehr.de/s/PCi3iLWrzdMZSmw
Name: floccus-4.10.1-2022-02-26.log

  • Debug log provided
Originally created by @0cwa on GitHub (Feb 26, 2022). Original GitHub issue: https://github.com/floccusaddon/floccus/issues/1052 ### Describe the bug Receive Error: `E020: Could not parse server response. Is the bookmarks app installed on your server? JSON.parse: unexpected character at line 1 column 1 of the JSON data ` It might be a result of charset issues, I have a lot of bookmarks, but I already ran the emoji troubleshooting. The strange characters I have besides emojis (which are displaying fine in my nextcloud folder) are: · ® and • I'm pretty sure this is linked to #992 ? It seems like the bookmarks still upload? But I'm not sure b/c I'm also using the Android app and they may have uploaded from there... ### To Reproduce Sync ( 1000 bookmarks, maybe some odd characters exist ) ### Expected behavior No error ### Screenshots ### Desktop - OS: Linux - Browser Firefox - Browser Version 97.0 - Floccus version: 4.10.1 - Floccus sync method: Nextcloud Folder ### Server - OS: Debian 11 Yunohost - Nextcloud version: 23.0.0 - Bookmarks app version: 10.0.3 ### Debug log Uploaded to: https://cloud.marcelklehr.de/s/PCi3iLWrzdMZSmw Name: floccus-4.10.1-2022-02-26.log - [ ] Debug log provided
kerem 2026-02-25 22:37:51 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@marcelklehr commented on GitHub (Feb 26, 2022):

The Nextcloud log entries you mentioned in #1051 show server errors, did those subside and can be ruled out as a cause of this? It's quite likely that a server error causes this error message in floccus.

<!-- gh-comment-id:1051916313 --> @marcelklehr commented on GitHub (Feb 26, 2022): The Nextcloud log entries you mentioned in #1051 show server errors, did those subside and can be ruled out as a cause of this? It's quite likely that a server error causes this error message in floccus.
Author
Owner

@0cwa commented on GitHub (Feb 27, 2022):

Yeah, I get this error server-side when I sync: (But only when I sync using the floccus plugin on firefox, I get no errors when syncing using either the floccus android app, the nextcloud android bookmarks app, or the floccus extension on chromium)

  Error    PHP                Error: Undefined offset: 0 at                                             2022-02-27T10:37:50+00:00 
                              /var/www/nextcloud/apps/bookmarks/vendor/marcelklehr/link-preview/src/Models/Link.php#55                           
                              at lib/private/Log/ErrorHandler.php line 92                                                         
                                                                                                                                  
                               0. .../src/Models/Link.php line 55                                                                 
                                  OC\Log\ErrorHandler::onError(                                                                   
                                                                                                                                  
                                  )                                                                                               
                               1. .../Link.php line 69                                                                            
                                  Marcelklehr\LinkPreview\Models\Link->fetch(                                                     
                                                                                                                                  
                                  )                                                                                               
                               2. .../LinkExplorer.php line 54                                                                    
                                  Marcelklehr\LinkPreview\Models\Link->getPreview(                                                
                                                                                                                                  
                                  )                                                                                               
                               3. .../BookmarkService.php line 190                                                                
                                  OCA\Bookmarks\Service\LinkExplorer->get(                                                        
                                                                                                                                  
                                  )                                                                                               
                               4. .../BookmarkService.php line 141                                                                
                                  OCA\Bookmarks\Service\BookmarkService->_addBookmark(                                            
                                                                                                                                  
                                  )                                                                                               
                               5. .../BookmarkController.php line 420                                                             
                                  OCA\Bookmarks\Service\BookmarkService->create(                                                  
                                                                                                                                  
                                  )                                                                                               
                               6. .../Dispatcher.php line 217                                                                     
                                  OCA\Bookmarks\Controller\BookmarkController->newBookmark(                                       
                                                                                                                                  
                                  )                                                                                               
                               7. .../Dispatcher.php line 126                                                                     
                                  OC\AppFramework\Http\Dispatcher->executeController(                                             
                                                                                                                                  
                                  )                                                                                               
                               8. .../App.php line 157                                                                            
                                  OC\AppFramework\Http\Dispatcher->dispatch(                                                      
                                                                                                                                  
                                  )                                                                                               
                               9. lib/private/Route/Router.php line 302                                                           
                                  OC\AppFramework\App::main(                                                                      
                                                                                                                                  
                                  )                                                                                               
                              10. lib/base.php line 1006                                                                          
                                  OC\Route\Router->match(                                                                         
                                                                                                                                  
                                  )                                                                                               
                              11. index.php line 36                                                                               
                                  OC::handleRequest(                                                                              
                                                                                                                                  
                                  )                                                                                               

<!-- gh-comment-id:1053480853 --> @0cwa commented on GitHub (Feb 27, 2022): Yeah, I get this error server-side when I sync: (But only when I sync using the floccus plugin on firefox, I get no errors when syncing using either the floccus android app, the nextcloud android bookmarks app, or the floccus extension on chromium) ``` Error PHP Error: Undefined offset: 0 at 2022-02-27T10:37:50+00:00 /var/www/nextcloud/apps/bookmarks/vendor/marcelklehr/link-preview/src/Models/Link.php#55 at lib/private/Log/ErrorHandler.php line 92 0. .../src/Models/Link.php line 55 OC\Log\ErrorHandler::onError( ) 1. .../Link.php line 69 Marcelklehr\LinkPreview\Models\Link->fetch( ) 2. .../LinkExplorer.php line 54 Marcelklehr\LinkPreview\Models\Link->getPreview( ) 3. .../BookmarkService.php line 190 OCA\Bookmarks\Service\LinkExplorer->get( ) 4. .../BookmarkService.php line 141 OCA\Bookmarks\Service\BookmarkService->_addBookmark( ) 5. .../BookmarkController.php line 420 OCA\Bookmarks\Service\BookmarkService->create( ) 6. .../Dispatcher.php line 217 OCA\Bookmarks\Controller\BookmarkController->newBookmark( ) 7. .../Dispatcher.php line 126 OC\AppFramework\Http\Dispatcher->executeController( ) 8. .../App.php line 157 OC\AppFramework\Http\Dispatcher->dispatch( ) 9. lib/private/Route/Router.php line 302 OC\AppFramework\App::main( ) 10. lib/base.php line 1006 OC\Route\Router->match( ) 11. index.php line 36 OC::handleRequest( ) ```
Author
Owner

@marcelklehr commented on GitHub (Feb 27, 2022):

Thanks! I'll fix this.

<!-- gh-comment-id:1053528732 --> @marcelklehr commented on GitHub (Feb 27, 2022): Thanks! I'll fix this.
Author
Owner

@marcelklehr commented on GitHub (Mar 1, 2022):

Should be fixed in the latest version of the bookmarks app (v10.1.0)

<!-- gh-comment-id:1055507561 --> @marcelklehr commented on GitHub (Mar 1, 2022): Should be fixed in the latest version of the bookmarks app (v10.1.0)
Author
Owner

@github-actions[bot] commented on GitHub (Mar 20, 2023):

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

<!-- gh-comment-id:1476306824 --> @github-actions[bot] commented on GitHub (Mar 20, 2023): This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/floccus#695
No description provided.