Git Product home page Git Product logo

112-1-hack2-qnas's Introduction

112-1-hack2-qnas's People

Contributors

ric2k1 avatar ntuee-webprogramming avatar joshualau0220 avatar ruby0322 avatar ba144220 avatar madmaxieee avatar

Watchers

 avatar

112-1-hack2-qnas's Issues

跑不動

助教您好
我的網站跑不起來
yarn dev 後出現
Error: getaddrinfo ENOTFOUND base

This error happened while generating the page. Any console logs will be displayed in the terminal window.

很多遇到類似問題Error: Timed out 1500ms waiting for expect(locator).toBeChecked()

Error: Timed out 1500ms waiting for expect(locator).toBeChecked()

Locator: locator('div').filter({ hasText: /^Task 1delete$/ }).getByRole('checkbox')
Expected: checked
Received: unchecked
Call log:

  • expect.toBeChecked with timeout 1500ms
  • waiting for locator('div').filter({ hasText: /^Task 1delete$/ }).getByRole('checkbox')
  • locator resolved to
  • unexpected value "unchecked"
  • locator resolved to
  • unexpected value "unchecked"
  • locator resolved to
  • unexpected value "unchecked"
  • locator resolved to
  • unexpected value "unchecked"
  • locator resolved to
  • unexpected value "unchecked"

14 | .getByRole("checkbox");
15 | await task1Checkbox.click();

16 | await expect(task1Checkbox).toBeChecked();
| ^
17 |
18 | await addTask(page, "Task 2");
19 | const task2Checkbox = page

at /autograder/source/tests/public-9.spec.ts:16:31

gradescope自動100

助教好,我有一個9:33分交的紀錄,那個應該是0分,但系統顯示100,再請助教幫我重新批改那一份,不然我怕到時候選錯。(B10705025)

實做完第一題之後 第二題掛掉

在批改後 都會出現一個叫做> 72 | await page.waitForURL(/projects);
的錯誤 但我的第一題有通過 然後也是因為這個原因過不了第二題與第三題 請問這是我的問題嗎?

yarn migrate 錯誤

助教您好,在執行yarn migrate後遇到以下錯誤,請問是否需要做任何設定?
截圖 2023-11-23 上午9 27 34

/Users/hsiehyuanlung/Desktop/Web Programming/wp1121/hack2/node_modules/drizzle-kit/index.cjs:40722
const message = name === "notice" ? new messages_1.NoticeMessage(length, messageValue) : new messages_1.DatabaseError(messageValue, length, name);
^

error: no pg_hba.conf entry for host "172.23.0.1", user "postgres", database "hack2", no encryption
at Parser.parseErrorMessage (/Users/hsiehyuanlung/Desktop/Web Programming/wp1121/hack2/node_modules/drizzle-kit/index.cjs:40722:98)
at Parser.handlePacket (/Users/hsiehyuanlung/Desktop/Web Programming/wp1121/hack2/node_modules/drizzle-kit/index.cjs:40563:25)
at Parser.parse (/Users/hsiehyuanlung/Desktop/Web Programming/wp1121/hack2/node_modules/drizzle-kit/index.cjs:40487:34)
at Socket. (/Users/hsiehyuanlung/Desktop/Web Programming/wp1121/hack2/node_modules/drizzle-kit/index.cjs:40763:44)
at Socket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Readable.push (node:internal/streams/readable:234:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23) {
length: 155,
severity: 'FATAL',
code: '28000',
detail: undefined,
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'auth.c',
line: '535',
routine: 'ClientAuthentication'
}

Node.js v18.17.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

因為無法登入所以後面都無法做

想請問目前問題在哪邊~我滿確定都跟上課範例一樣,但是local test過了第一個,gradescope無法過
因為無法登入所以後面都無法做出來,想請助教幫忙一下謝謝!

TA comment: 請勿將作答貼至 issues

選擇過往的分數

不好意思 如果最後一次的繳交分數沒有跑出來的話 我是否可以選擇過往的分數作為我的成績呢?

yarn migrate錯誤

yarn migrate
yarn run v1.22.19
$ drizzle-kit push:pg
drizzle-kit: v0.19.13
drizzle-orm: v0.28.6

No config path provided, using default path
Reading config file 'C:\Users\曹博淵\Desktop\hack2\drizzle.config.ts'
C:\Users\曹博淵\Desktop\hack2\node_modules\drizzle-kit\index.cjs:40722
const message = name === "notice" ? new messages_1.NoticeMessage(length, messageValue) : new messages_1.DatabaseError(messageValue, length, name);
^

error: database "hack2" does not exist
at Parser.parseErrorMessage (C:\Users\曹博淵\Desktop\hack2\node_modules\drizzle-kit\index.cjs:40722:98)
at Parser.handlePacket (C:\Users\曹博淵\Desktop\hack2\node_modules\drizzle-kit\index.cjs:40563:25)
at Parser.parse (C:\Users\曹博淵\Desktop\hack2\node_modules\drizzle-kit\index.cjs:40487:34)
at Socket. (C:\Users\曹博淵\Desktop\hack2\node_modules\drizzle-kit\index.cjs:40763:44)
at Socket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Readable.push (node:internal/streams/readable:234:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23) {
length: 91,
severity: 'FATAL',
code: '3D000',
detail: undefined,
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'postinit.c',
line: '1019',
routine: 'InitPostgres'
}

Node.js v18.17.1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Button variant error

All of the Button component has an error with the variant attribute.
Is this caused because I have not done some part of the Button component?

Problem3 same issue

助教你好,我看到有同學和我一樣第三題本來能過但是後來不能過情況。
所以想請問一下是gradescope的問題嗎?
然後我看了gradescope給我的原因是以下圖片所顯示的。
像是他去向data-testid="title"拿東西可使一直拿到空字串。
可是那個是原本code的東西,我完全沒碰。
Uploading 截圖 2023-11-23 上午10.45.54.png…

Problem 3 playwright 問題

Screenshot 2023-11-23 104735
上述附圖是我的gradescope第三題報錯,看來是他抓不到title的Your Projects,然而這部分應該不屬於我們需要改的東西i.e.原本hack2就有了,希望助教幫我看一下有什麼問題。以下附圖是我原本的code ssection(這部分應該大家都一樣,所以應該可以貼上來吧(?)))
Screenshot 2023-11-23 104800

Problem 8

bug
如圖
data-testid被註解掉了
is it intended?
位置: src/app/projects/[projectId]/page.tsx 第53行

Error: page.waitForURL: Test timeout of 30000ms exceeded.

一直出現這個錯誤代表什麼意思

Error: page.waitForURL: Test timeout of 30000ms exceeded.
=========================== logs ===========================
waiting for navigation to "/projects" until "load"
navigated to "http://localhost:3000/docs"
navigated to "http://localhost:3000/docs"

at utils.ts:72

70 | await page.getByLabel("Confirm Password").fill(password-${username});
71 | await page.getByTestId("auth-submit-button").click();

72 | await page.waitForURL(/projects);
| ^
73 | };
74 |
75 | /* Setup the page before each test */

at signUpDummyUser (C:\Users\曹博淵\Desktop\112-1-hack2\tests\utils.ts:72:14)
at C:\Users\曹博淵\Desktop\112-1-hack2\tests\public-3.spec.ts:16:3

localhost:3000 連不上

助教您好,
我 yarn migrate 可以成功執行,但是 yarn dev 之後 browser 連不上 (connection refused)

產生的zip檔裡面只有README

助教您好,我試過curl wp.ee.ntu.edu.tw/file-server/hack2/zip.sh | bash與git archive -o hack2.zip HEAD:hack2,但產生的檔案都只有README, 不確定是哪邊出問題了

grade scope is so 慢

我改了大約半小時 結果就沒結果,再次上傳一個大約134kb 的zip,還在改,怎麼會這麼久

請問評分根據

想請問一下我們交出去的gradescope成績就是最後的成績嗎? 我這邊是gradescope過了 可是 playwright死一片

打不開http://localhost:3000

Screenshot 2023-11-23 at 10 04 31 AM

批改之後自動批改器結果畫面全部空白是正常的嗎...
然後我在terminal雖然顯示有compile但是畫面怎樣都打不開...想請助教幫忙確認看看問題在哪裡

(base) yutinghsu@YutingdeAir hack2 % yarn dev
yarn run v1.22.21
warning ../../package.json: No license field
$ next dev
▲ Next.js 14.0.1

warning ../../package.json: No license field
✓ Ready in 2.4s
○ Compiling /page ...
✓ Compiled /page in 1388ms (701 modules)
✓ Compiled in 137ms (252 modules)
✓ Compiled in 190ms (252 modules)
✓ Compiled in 211ms (252 modules)
✓ Compiled in 169ms (252 modules)
✓ Compiled in 161ms (252 modules)
✓ Compiled /page in 107ms (449 modules)

Problem3

助教你好,我本來gradescope第三題是能過的,但是當我寫完第四題後再上傳第三題就不行了。是有更改批改標準。
謝謝。

TODO: 10 problem

想請問Todo 10除了刪除task外還有什麼要求嗎?我可以正常刪除task,但yarn test以及Gradescope都無法過,謝謝助教。
錯誤訊息:
截圖 2023-11-23 上午10 48 55

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.