golang-gin icon indicating copy to clipboard operation
golang-gin copied to clipboard

Uncaught TypeError: c.render is not a function

Open johnsmith1212 opened this issue 7 years ago • 10 comments

Using Go 1.11, Gin and React

Getting Uncaught TypeError: c.render is not a function

any idea why @codehakase?

johnsmith1212 avatar Oct 22 '18 15:10 johnsmith1212

@codehakase Sorry to bother you, any news on this?

johnsmith1212 avatar Oct 23 '18 16:10 johnsmith1212

@johnsmith1212 sorry for the late response! Where does that error occur?

codehakase avatar Oct 26 '18 22:10 codehakase

@codehakase no worries, that's the console, output after using all the code of the blog post snip20181103_1

johnsmith1212 avatar Nov 03 '18 09:11 johnsmith1212

@codehakase just took another look at it, I can now login via auth0, but the e.g the API call for http://localhost:3000/api/jokes is throwing a 401.

johnsmith1212 avatar Nov 03 '18 10:11 johnsmith1212

@codehakase did you get a chance to look at that?

johnsmith1212 avatar Nov 09 '18 14:11 johnsmith1212

@johnsmith1212 confirm you have the following environment variables filed:

export AUTH0_API_CLIENT_SECRET=""
export AUTH0_CLIENT_ID=""
export AUTH0_DOMAIN=""
export AUTH0_API_AUDIENCE=""

codehakase avatar Nov 09 '18 18:11 codehakase

@codehakase yeah I guess so, as I can login

johnsmith1212 avatar Nov 10 '18 11:11 johnsmith1212

@codehakase but my auth0 dashboard looks slightly different as yours in the tutorial, as I have an APIs menu point as well an Application menu point

johnsmith1212 avatar Nov 10 '18 11:11 johnsmith1212

@johnsmith1212 I'll pull a fresh clone of the code, and run on my machine, will revert if there's something breaking

codehakase avatar Nov 11 '18 21:11 codehakase

@codehakase did you run in any issues?

johnsmith1212 avatar Nov 14 '18 15:11 johnsmith1212