Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

SyntaxError: Unexpected token < in JSON at position 0

$
0
0

@yoyodj wrote:

Im getting this error on this function

this.http.request("")
.subscribe((res) => {
        console.log(res.json())

        this.list = res.json();
    }, (err) => {
        console.log(err)
    })

I left request first parameter a empty string, what should i give here, firebase address like this? https://xyz.firebaseio.com, im getting same error

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>