FetchError

invalid json response body at https://api.uraldrama.ru/wp-json/ural-drama/v1/performances/noch-nezhna-predpokaz-spektaklya reason: Unexpected token < in JSON at position 0

node_modules/node-fetch/lib/index.js:273:32
return consumeBody.call(this).then(function (buffer) { try { return JSON.parse(buffer.toString()); } catch (err) { return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json')); } }); }, /**
internal/process/task_queues.js:95:5
processTicksAndRejections
pages/spectacle/_slug.vue:100:
async asyncData
async asyncData({route, params}) { if (process.server) { const response = await fetch("https://api.uraldrama.ru/wp-json/ural-drama/v1/performances/"+route.params.slug); //use route object const spec = await response.json(); return {spec} //directly use params //console.log("params",params.slug) }

Request Details

URI /spectacle/noch-nezhna-predpokaz-spektaklya
Request Method GET
HTTP Version 1.1
Connection Keep-Alive

Headers

HOST uraldrama.ru
X-REAL-IP 44.201.199.251
X-FORWARDED-FOR 44.201.199.251, 44.201.199.251
X-FORWARDED-PORT 443
X-FORWARDED-PROTO https
ACCEPT */*
USER-AGENT claudebot
X-FORWARDED-HOST uraldrama.ru
X-FORWARDED-SERVER uraldrama.ru

Cookies