https://drive.google.com/file/d/11bH1kTdckq6lz_s0Q9WpF0hXsZZ9Hw7H/view?usp=sharing
Created
February 11, 2024 19:01
-
-
Save youtube-jocoding/c564f1ad4c08aa12cbfd0f42e090c8ba to your computer and use it in GitHub Desktop.
책을 구매해서 접속했는데요, 파일을 다운로드가 되면 압축파일 안에 아무것도 없어요..
네 맞습니다. 구글 드라이브에서 압축파일을 받으면 404KB 인데 열면 아무것도 없습니다. 확인 부탁드립니다.
@nicedanny @MacTechIN 코드는 정상적으로 있는데 아마 보안 프로그램 때문에 코드를 다운 받아서 자동 삭제 처리가 되었을 것 같습니다.
Github에도 별도로 올려두었으니 아래 주소에서 확인해보세요!
https://github.com/youtube-jocoding/chatgpt-api-chatdoge-book
네 감사합니다 안그래도 이거 때문에 공부 중단 했는데 넘 감사합니다 ^^
2024년 3월 25일 (월) 오후 6:44, 조코딩 JoCoding ***@***.***>님이 작성:
… ***@***.**** commented on this gist.
------------------------------
@nicedanny <https://github.com/nicedanny> @MacTechIN
<https://github.com/MacTechIN> 코드는 정상적으로 있는데 아마 보안 프로그램 때문에 코드를 다운 받아서 자동
삭제 처리가 되었을 것 같습니다.
Github에도 별도로 올려두었으니 아래 주소에서 확인해보세요!
https://github.com/youtube-jocoding/chatgpt-api-chatdoge-book
—
Reply to this email directly, view it on GitHub
<https://gist.github.com/youtube-jocoding/c564f1ad4c08aa12cbfd0f42e090c8ba#gistcomment-5000060>
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APE6YBH35RQ3RB5E256GTSDYZ7WXHBFKMF2HI4TJMJ2XIZLTSKBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDHNFZXJJDOMFWWLK3UNBZGKYLEL52HS4DFVRZXKYTKMVRXIX3UPFYGLK2HNFZXIQ3PNVWWK3TUUZ2G64DJMNZZDAVEOR4XAZNEM5UXG5FFOZQWY5LFVEYTEOBSG43TGMRVU52HE2LHM5SXFJTDOJSWC5DF>
.
You are receiving this email because you were mentioned.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
.
Cannot GET / 이라고 뜨는데 왜일까요
코드 ctrl + c, ctrl + v 했는데 안되네요 ㅠㅠ
배포까지 했는데요.
다음과 같이 에러 로그 뜨면서 안되네요 ;;
https://chatdoge-yoonhok.pages.dev' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
backend 코드는 다음과 같고요.
제가 뭘 놓친 걸까요...?
책에 나온대로 한다고 한 것 같은데요 ㅠㅠ
require('dotenv').config();
const OpenAI = require('openai');
const client = new OpenAI({
apiKey: process.env.API_KEY_OPENAI
});
const serverless = require('serverless-http')
const express = require('express');
const app = express();
const cors = require('cors');
const corsOptions = {
origin: 'https://chatdoge-yoonhok.pages.dev',
credentials: true
}
app.use(cors(corsOptions))
app.use(express.json())
app.use(express.urlencoded({ extended: true }))
app.post('/fortuneTell', async function (req, res) {
...
})
module.exports.handler = serverless(app)
람다 배포 관련해서 무슨 API Gateway 설정 같은 걸 해야 하는 것 같은데요.
이게 누락되서 그런 건가요...?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
책을 구매해서 접속했는데요, 파일을 다운로드가 되면 압축파일 안에 아무것도 없어요..