yolen
06/20/2017, 2:35 PMnilan
06/20/2017, 3:03 PMreturn fetch...
instead?yolen
06/21/2017, 6:58 AMonst fetch = require('isomorphic-fetch')
module.exports = function (event) {
console.log('inside')
//horse = fetch('<https://jsonplaceholder.typicode.com/users/>')
return fetch('<https://onlaw.dk>')
.then(response => {
console.log('inside fetch')
console.log(response)
})
yolen
06/21/2017, 6:59 AMCODE
400
MESSAGE
Converting circular structure to JSON
ERROR
Script returned an error.
TypeError: Converting circular structure to JSON
at Object.stringify (native)
at Console.fnLog [as log] (/data/io/0ebbdbaf494b473eb8c6a65f696df3d4/webtask.js:19:64)
at /data/io/0ebbdbaf494b473eb8c6a65f696df3d4/webtask.js:9:12
at process._tickDomainCallback (node.js:412:9)
hvillain
06/23/2017, 11:33 AMhvillain
06/23/2017, 11:34 AM