SEI-ATL / UNIT_2

This repo is for all things Unit 2
0 stars 3 forks source link

Tuesday, November 17, 2020 #4

Closed romebell closed 3 years ago

romebell commented 3 years ago

Admin 👀 - [admin] is looking into it 👍 - [admin] Answer issue. Looks good. Code works.

Students 🚀 - [student] I get it! 😕 - [student] Still confused 😄 - [student] A simple error 🎉 - [student] My code now works

Admin/Students ❤️ - [student/admin] Love the topic or code snippet 👎 - [student/admin] Code didn't work

nitishdayal commented 3 years ago

Unable to convert buffer from fs.readFileSync to a JSON object using JSON.parse: Screen Shot 2020-11-17 at 8 20 57 AM Screen Shot 2020-11-17 at 8 21 55 AM

romebell commented 3 years ago

@nitishdayal Do you have a dinosaurs.json file?

nitishdayal commented 3 years ago

I do, but I just looked at it and it's empty. :) So. Simple enough error. I assumed it was already populated with some data; guess I missed the step where we seeded it. Thanks!

NikkiHmltn commented 3 years ago

Having some issues trying to get the img url for cryptids to post. Its breaking my code so I commented it out. Any ideas?


<form action="/cryptids" method="POST">

    <label for="cryptidName">Name</label>
    <input id="cryptidName" type="text" name="name">

    <!-- <label for="imgURL">Image URL</label>
    <input id="imgURL" type="text" name="imgURL"> -->

    <input type="submit">
    </form>
fmuwanguzi commented 3 years ago

Screen Shot 2020-11-17 at 12 35 34 PM

This came up once i started my crypt controller

NikkiHmltn commented 3 years ago

Screen Shot 2020-11-17 at 12 35 34 PM

This came up once i started my crypt controller

It looks like "expresss" has one to many 's' there! Try that error out?

romebell commented 3 years ago
Screen Shot 2020-11-17 at 9 52 21 AM

@fmuwanguzi Did you get this working?

Double check your spelling of express inside your index.js file

fmuwanguzi commented 3 years ago

I fixed that typo and this came up Screen Shot 2020-11-17 at 12 55 58 PM

NikkiHmltn commented 3 years ago
Screen Shot 2020-11-17 at 1 48 23 PM Screen Shot 2020-11-17 at 1 48 32 PM
mkzarra commented 3 years ago

@canourrea23 check your " in your inputs

canourrea23 commented 3 years ago

@canourrea23 check your " in your inputs

Sorry I was able to get it fixed and I deleted it. Thanks!!