observablehq / feedback

Customer submitted bugs and feature requests
42 stars 3 forks source link

embedding runtime w/ javascript cannot determing notebook name #639

Closed espinielli closed 2 weeks ago

espinielli commented 2 weeks ago

When I want to embed a plot/map and I select "Runtime with JavaScript" for my notebook [1] I get the following error

chart = RuntimeError: Cannot determine notebook name See snapshot below image

This is showing in embedded cells I used since long [2]

[1] https://observablehq.com/@espinielli/co2-emissions-variation-per-state [2] https://ansperformance.eu/efficiency/emissions/

mootari commented 2 weeks ago

The error is produced by https://observablehq.com/@endpointservices/serverless-cells@1964, not Observable.

I recommend you replace fetchp with corsproxy.io.

espinielli commented 2 weeks ago

Do you have an example for corsproxy.io? I had it working in the past but not anymore...

espinielli commented 2 weeks ago

I do not understand why my url does not work https://observablehq.com/@espinielli/fetch-mystery

CobusT commented 2 weeks ago

When I get the url with your function:

proxifyUrl(url)

and then open that url in the browser, I get this error:

{
"message": "Please create an account at https://accounts.corsproxy.io to proxy this file type."
}

You can see the same error when you type that url here

espinielli commented 2 weeks ago

Yes that I already did long ago...and then what? How do I use the account info/params if any? (Sorry to bother you but I see no examples on how to get over it...and fetchp() works instead in the notebook but not in the embed)

CobusT commented 2 weeks ago

Ah, I see you have been discussing the problem with corsproxy.io here.

espinielli commented 2 weeks ago

Yes...and for the actual notebook I reverted to attached files...this is so annoying (and maybe it is due to some config on our webserver side? I do not know enough to dig further...). I was so happy that fetchp() worked but then discovered the side effect on embed...so I am yet again stuck... Any hints / suggestions for investigating further are more than welcome.