URIError: URI malformed for functions.bundle.js

4 replies · opened Feb 6, 2024

LLughnasadFeb 6, 2024

hello guys, just purchased your support today hehe.

I'm trying to do some tests with a little html page using canvas resources. My local site works fine without issues, but in my server show this error:

Uncaught URIError: URI malformed
    at decodeURIComponent ()
    at Object.get (functions.bundle.js:489:28)

You can see it live in the attached url. Maybe is something to do with my server config? I'm using aapanel.

hopeful you guys can help me, thanks!

OH, added my local website screenshot, as you can see works fine, showing all the sections and elements, no errors.

LLughnasadFeb 7, 2024

In the meantime, let me share my .htaccess that I'm using right now that probably could affect this or could help you guys out to find the possible issue.


	RewriteEngine On
        
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteRule ^(.*)$ ./index.php?/$1 [L]

# Required Rewrite Rule 

# We should always hide Sensitive Information
ServerSignature Off
# We should always hide Sensitive Information

# Request Recommended by Mozilla

  
    # mod_headers, y u no match by Content-Type?!
    
      SetEnvIf Origin ":" IS_CORS
      Header set Access-Control-Allow-Origin "*" env=IS_CORS
    
  

# Request Recommended by Mozilla

# Allow Webfont access from other locations. (handy)

  
    Header set Access-Control-Allow-Origin "*"
  

# Allow Webfont access from other locations. (handy)

# Prevent 404 Errors for Non-Existing Redirected Folders
Options -MultiViews
ErrorDocument 404 error/index.html
# we also want UTF-8 Encoding
AddDefaultCharset utf-8
# Disallow users to view folders with no content

  Options -Indexes

  Order allow,deny
  Deny from all
  Satisfy All

# Prevent 404 Errors for Non-Existing Redirected Folders

# We also want to compress / minify CSS, Images, Remove HTML Whitespace and Comments

ModPagespeed on
ModPagespeedEnableFilters rewrite_css,combine_css
ModPagespeedEnableFilters recompress_images
ModPagespeedEnableFilters convert_png_to_jpeg,convert_jpeg_to_webp
ModPagespeedEnableFilters collapse_whitespace,remove_comments

# We also want to compress / minify CSS, Images, Remove HTML Whitespace and Comments

# Headers Module start

  
    Header append Vary: Accept-Encoding
  

# Headers Module end

# Gzip Compression start

  mod_gzip_on Yes
  mod_gzip_dechunk Yes
  mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
  mod_gzip_item_include handler ^cgi-script$
  mod_gzip_item_include mime ^text/.*
  mod_gzip_item_include mime ^application/x-javascript.*
  mod_gzip_item_exclude mime ^image/.*
  mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*

# Gzip Compression end

# Keep Alive start

    Header set Connection keep-alive

# Keep Alive end

# ETag start
 
   
    Header unset ETag 
   
  FileETag None 

# ETag end

Any help is highly appreciate, thank you guys for your time!

LLughnasadFeb 8, 2024

Quick update:

so, it seems that the issue really is a little conflict between my CMS cookies and the JS code:
decodeURIComponent(document.cookie)
from canvas "functions.bundle.js".

I'm trying to deal with that the best way I can, for now, if you guys have any suggestion for this would be great.

SSemicolon WebSTAFFFeb 11, 2024

Hello,

Apologies for the Delays in replying!

We have tried checking this out for you and it appears to be working fine for us and we are not seeing any errors in the Browser Console. Any chances you can check if it is happening due to some Addons in your Browser and can you please consider checking this in a different Browser or a Device so that we rule out this possibility and then investigate this further.

Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard