Search
Setup for Free
CD
Cloudflare Developers
Failed to Load Xenova Model via CDN – Unexpected Token '<' (Invalid JSON Response)
Original message was deleted
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
83,384
Members
View on Discord
Similar Threads
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
C
cyan
•
3/13/25, 8:21 AM
Does Cloudflare block certain model files or MIME types by default
?
C
cyan
•
3/13/25, 8:22 AM
https://testing-2qv.pages.dev/
C
cyan
•
3/13/25, 3:06 PM
guys if you need more info i am ready to give
C
cyan
guys if you need more info i am ready to give
H
Hard@Work
•
3/13/25, 3:47 PM
I see waiting to load model
, but that
's it
C
cyan
•
3/13/25, 4:07 PM
when you click load model button i got this
C
cyan
•
3/13/25, 4:07 PM
C
cyan
•
3/13/25, 4:12 PM
but in netlify its working
C
cyan
when you click load model button i got this
H
Hard@Work
•
3/13/25, 4:14 PM
Nvm
, that
's me being dumb
. Do you have a repo for this project
?
H
Hard@Work
•
3/13/25, 4:15 PM
This looks like some files are in the wrong directory
.
.
.
C
cyan
•
3/13/25, 4:18 PM
only one file index
.html
C
cyan
•
3/13/25, 4:19 PM
anything do with headers
?
C
cyan
•
3/13/25, 4:20 PM
all code is visible
C
cyan
•
3/13/25, 4:26 PM
same tried with netlify it working
C
cyan
•
3/13/25, 4:27 PM
loading cdn size is about i guess 90 mb
C
cyan
https://testing-2qv.pages.dev/
D
DaniFoldi
•
3/13/25, 4:39 PM
I don
't see any network requests on this page
, besides the transformers
.min
.js file
D
DaniFoldi
•
3/13/25, 4:41 PM
oh when I click on
"Load Model
"
, I see 4 json requests
, but they all get your html file
, that
's why the parsing error
D
DaniFoldi
•
3/13/25, 4:41 PM
perhaps you have the json files in the wrong directory
?
D
DaniFoldi
•
3/13/25, 4:42 PM
you can check the
"uploaded assets
" section of the pages deployment to see if verify that they have been uploaded
/and where
/
C
cyan
•
3/14/25, 7:34 AM
only one file is uploaded is index
.html
D
DaniFoldi
•
3/14/25, 1:30 PM
hmm
, then maybe your model files are in the wrong directory
, can you share more of your setup
?
D
DaniFoldi
•
3/14/25, 1:31 PM
all files that you want uploaded should be in the
(for example
)
dist
dist
folder
, which you upload
Similar Threads
Failed to process video: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
CD
Cloudflare Developers / pages-help
10mo ago
Unreliable CDN response times
CD
Cloudflare Developers / general-help
3y ago
SynaxError: Unexpected Token export
CD
Cloudflare Developers / workers-and-pages-help
2y ago