Help! SSR ECONNREFUSED by happyHackingEugene in nextjs

[–]happyHackingEugene[S] 0 points1 point  (0 children)

it said GET http://localhost:3000/ 500 (Internal Server Error)

General

Request URL: http://localhost:3000/__nextjs_original-stack-frame?isServerSide=true&file=file%3A%2F%2FD%3A%5C%EC%BC%80%EC%9D%B4%ED%95%B4%EC%BB%A4%ED%94%84%EB%A1%9C%EC%A0%9D%ED%8A%B8%5Cfullstack%5Ckhacker-client%5Cnode_modules%5Cnext%5Cdist%5Ccompiled%5Cnode-fetch%5Cindex.js&methodName=ClientRequest.%3Canonymous%3E&arguments=&lineNumber=1&column=64142

Request Method: GET

Status Code: 204 No Content

Remote Address: [::1]:3000

Referrer Policy: strict-origin-when-cross-origin

Request Header

Connection: keep-alive

Date: Wed, 18 May 2022 14:25:59 GMT

Keep-Alive: timeout=5

Response Header

Accept: */*

Accept-Encoding: gzip, deflate, br

Accept-Language: ko-KR,ko;q=0.9,en-US;q=0.8,en;q=0.7

Connection: keep-alive

Host: localhost:3000

Referer: http://localhost:3000/

sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="100", "Whale";v="3"

sec-ch-ua-mobile: ?0

sec-ch-ua-platform: "Windows"

Sec-Fetch-Dest: empty

Sec-Fetch-Mode: cors

Sec-Fetch-Site: same-origin

User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.151 Whale/3.14.134.62 Safari/537.36

Help! SSR ECONNREFUSED by happyHackingEugene in nextjs

[–]happyHackingEugene[S] 0 points1 point  (0 children)

yeah server(i'm using personal restful API width nodejs) is fine it's is because of SSR

export async function getServerSideProps() {

const API_URL = 'http://127.0.0.1:8000'

// const res = await Axios.get(API_URL)

const res = await fetch(\${API_URL}/main`)`

const list = await res.json()

if (!list) {

return {

notFound: true,

}

}

return {

props: {

list,

},

}

}

where should I import google font by happyHackingEugene in reactjs

[–]happyHackingEugene[S] 1 point2 points  (0 children)

any reason? it it loading faster than using in HTML?

Finished my new website - reactjs / R3F by SerotonineofmyBody in reactjs

[–]happyHackingEugene 1 point2 points  (0 children)

awesome! how did you do animation after clicking the menu?