Promise rejection errors on tag entry/autocomplete #434

Closed
opened 2026-02-04 19:58:48 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @ghost on GitHub (Sep 16, 2017).

  • BookStack Version: v0.18.0
  • PHP Version: 7.0.22
  • MySQL Version: MariaDB 10.0.31
  • Nginx version: 1.12.1
Expected Behavior

Tags should auto-suggest/autocomplete

Actual Behavior

Nothing happens, Firefox console throws the following for each attempt:

Unhandled promise rejection Error: Request failed with status code 404
Stack trace:
[18]</t.exports@https://[domain]/bookstack/js/common.js?version=v0.18:7:30624
[21]</t.exports@https://[domain]bookstack/js/common.js?version=v0.18:7:31732
[11]</t.exports/</p[h]@https://[domain]bookstack/js/common.js?version=v0.18:7:26498

Trying to access the URLs directly works just fine. CSP headers are in place but don't seem to be affecting this. The site works otherwise, running it from a sub-directory with the following nginx config:
location ^~ /bookstack {
alias /var/www/apps/BookStack/public;
try_files $uri $uri/ @laravel;
location ~ .php$ {
fastcgi_split_path_info ^(.+?.php)(/.)$;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /var/www/apps/BookStack/public/index.php;
# Tell Nginx to pass authorization headers
fastcgi_pass_header Authorization;
# Avoid sending the security headers twice
fastcgi_param modHeadersAvailable true;
}
}
location @laravel {
rewrite /bookstack/(.
)$ /bookstack/index.php?/$1 last;
}

Originally created by @ghost on GitHub (Sep 16, 2017). * BookStack Version: v0.18.0 * PHP Version: 7.0.22 * MySQL Version: MariaDB 10.0.31 * Nginx version: 1.12.1 ##### Expected Behavior Tags should auto-suggest/autocomplete ##### Actual Behavior Nothing happens, Firefox console throws the following for each attempt: > Unhandled promise rejection Error: Request failed with status code 404 > Stack trace: > [18]</t.exports@https://[domain]/bookstack/js/common.js?version=v0.18:7:30624 > [21]</t.exports@https://[domain]bookstack/js/common.js?version=v0.18:7:31732 > [11]</t.exports/</p[h]@https://[domain]bookstack/js/common.js?version=v0.18:7:26498 Trying to access the URLs directly works just fine. CSP headers are in place but don't seem to be affecting this. The site works otherwise, running it from a sub-directory with the following nginx config: location ^~ /bookstack { alias /var/www/apps/BookStack/public; try_files $uri $uri/ @laravel; location ~ \.php$ { fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME /var/www/apps/BookStack/public/index.php; # Tell Nginx to pass authorization headers fastcgi_pass_header Authorization; # Avoid sending the security headers twice fastcgi_param modHeadersAvailable true; } } location @laravel { rewrite /bookstack/(.*)$ /bookstack/index.php?/$1 last; }
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#434