Hi, I’m trying to fetch data from this url in order to display compatibility data for css features: https://unpkg.com/@mdn/browser-compat-data/data.json
The data seems to be fetch correctly (I can log the variable data to the console), but when attempting to save the json in a tiddler, the wiki crash. Here’s my code:
\procedure fetch()
\procedure completion()
<$action-log data=<<data>>/>
<$action-setfield $tiddler="$:/state/browser-compat-data" text=<<data>>/>
\end completion
<$action-sendmessage
$message="tm-http-request"
url="https://unpkg.com/@mdn/browser-compat-data/data.json"
method="GET"
header-accept="application/json"
bind-status="$:/temp/browser-compat-data/status"
bind-progress="$:/temp/browser-compat-data/progress"
oncompletion=<<completion>>
onprogress=<<progress>>
var-start=<<start>>
var-limit=<<limit>>
/>
\end fetch
<$button actions=<<fetch>>> fetch</$button>
bind-status="$:/temp/browser-compat-data/status"
{{$:/temp/browser-compat-data/status}}
---
bind-progress="$:/temp/browser-compat-data/progress"
{{$:/temp/browser-compat-data/progress}}
---
{{$:/state/browser-compat-data}}