Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
G
goyo-syncable-container
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 27
    • Issues 27
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 7
    • Merge Requests 7
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • kuraemon-goyo
  • packages
  • goyo-syncable-container
  • Issues
  • #29

Closed
Open
Opened Aug 27, 2024 by r_maehira-tc@r_maehira-tcDeveloper

自分専用の削除アルバムが含まれる工事データで閉じる時のチェックイン時にエラー

(複数人参加工事)
御用達exe{
  client1.setupLocalConstruction
  client1.refresh

  アルバムUI{
    client1.startAlbumEdit = ( checkOutAlbum(albumId1), checkOutAlbum(gabege1) )
    client1でアルバムから画像を削除(albumId1)※画像を追加(gabege1)
    client1.checkInAlbum(albumId1)
  }
  client1.checkInConstruction //  ここで問題が起こる
}

エラーログ

[2024-08-27_19:02:44.834]: DEBUG construction-status| checkIn failed TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
[2024-08-27_19:02:44.834]: ERROR goyo-cloud-accessor| checkInConstruction
[2024-08-27_19:02:44.834]: ERROR goyo-cloud-accessor message| The "path" argument must be of type string. Received type undefined
[2024-08-27_19:02:44.834]: ERROR goyo-cloud-accessor| TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
[2024-08-27_19:02:44.834]: ERROR goyo-cloud-accessor|     at validateString (internal/validators.js:112:11)
[2024-08-27_19:02:44.834]: ERROR goyo-cloud-accessor|     at Object.join (path.js:375:7)
[2024-08-27_19:02:44.834]: ERROR goyo-cloud-accessor|     at gen (C:\Users\maehira\goyotashi\goyo-ui\module\actualGoyoClient.js:170:36)
[2024-08-27_19:02:44.834]: ERROR goyo-cloud-accessor|     at processTicksAndRejections (internal/process/task_queues.js:94:5)

actualGoyoClient.jsでの実装

readAldumDbFileJsonFile(albumFolderName, albumId) {
    logger.debug("readAldumDbFileJsonFile")
    return (async function* gen() {
      const album = await bookrackAccessor.getAlbumDetail(localConstructionId, albumId);
      const albumDBFilePath = path.join(album.albumDetail.albumFolder, 'albumItem.jsonl') // ここでエラーが発生
      const records = await bookrackAccessor.parseJsonlFile(albumDBFilePath, 'albumItem')
      for (const record of records) {
        yield { parentFolder: toS3KeyString(record.albumItem.parentFolder), fileName: record.albumItem.fileName }
      }
    })()
  }
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: kuraemon-goyo/packages/goyo-syncable-container#29