-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$http.get(...).text is not a function #86
Comments
This issue as been imported as question since it does not respect http issue template. Only bug reports and feature requests stays open to reduce maintainers workload. |
bot closed it, ill leave it with you.. |
additionally, the response object looks like:
network all good and shows content (ip).. also the same error if done outside of |
Just FYI for other who got this issue. const requestData = await $http.get('http://icanhazip.com')
const ip = await requestData.text()
return { ip } |
I'm getting the above error using code directly taken from the example in docs:
https://http.nuxtjs.org/guide/usage.html#using-in-asyncdata
browser
console
The text was updated successfully, but these errors were encountered: