Skip to content

Error when trying deploying app to Google Cloud Kubernetes #7

@andytan2624

Description

@andytan2624

Thanks for this in depth course, it's been really informative. Just had a stumble towards the end of the course, where after trying to deploy to Google Cloud via travisCI, when going to the IP address, it errors out and I get this message

TypeError: this.state.seenIndexes.map is not a function at t.value (Fib.js:39) at t.value (Fib.js:66)

Where the code in Fib.js in the client folder is like this

async fetchIndexes() { const seenIndexes = await axios.get('/api/values/all'); this.setState({ seenIndexes: seenIndexes.data });

It seems like the server isn't working, because it keeps returning "Hi"

The weird thing this was working locally when using kubectl, but now it's not

Has anyone encountered this issue before and know what the problem is?

This is the repo to what I've done so far https://github.com/andytan2624/multi-k8s

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions