RatterScanner / RatterscannerSite

RatterscannerSite
https://scan.ratterscanner.com/
MIT License
5 stars 2 forks source link

F????????? #7

Closed Ghosty920 closed 2 months ago

Ghosty920 commented 2 months ago
Recived chunk: {"fileName":"PlayerHealthIndicators-1.1.1-1.21.jar","fileSize":12486,"fileProperties":{"hash":{"SHA_256_hash":"84df8498b380b1f2dcfb7093d517a1c71570422ef4c7fd13e09320a046068bf1","MD5_hash":"ce04bad66bee3389adc63f4a401b53f9","SHA_512_hash":"c3384731b46467ff28402e4003785106dc9e57e47b45bae5a21341addf87dd4efd9cb1909191884626c74e3e4306f6f4d2a7c5c5918b357b6d1882ec7409995f"},"name":{"originalName":"PlayerHealthIndicators-1.1.1-1.21.jar","newName":"file-1724292468104.jar"},"size":12486,"downloadLink":"https://cdn.ratterscanner.com/jarscanner/file-1724292468104.jar"},"knownFileDetails":{"hash":"84df8498b380b1f2dcfb7093d517a1c71570422ef4c7fd13e09320a046068bf1","safe":true,"modrinthInfo"
Recived chunk: :{"projectId":"dbu8vyp0","amountOfDownloads":15412,"name":"Player Health Indicators 1.1.1","known":false}},"bestMatchDetails":{"target":"ctjs-1.1.1-1.8.9.jar","similarity":0.43636363636363634,"knownFileDetails":{"hash":"e525560252bdbd875bc500136c5372546f26ffb07ba7e7e2d2acc7d8a82c95bc","fileName":"ctjs-1.1.1-1.8.9.jar","safe":true,"githubInfo":{"name":"ChatTriggers","owner":"ChatTriggers","projectName":"ChatTriggers","repoUrl":"https://github.com/ChatTriggers/ChatTriggers/","downloadUrl":"https://github.com/ChatTriggers/ChatTriggers/releases/download/1.1.1/ctjs-1.1.1-1.8.9.jar"}}},"status":"File not scanned before, adding to scan queue","id":"15266"}
Upload complete
/home/container/dist/index.js:143
        let status = jsonData.progress.networkAnalysis.status;
                                                       ^
TypeError: Cannot read properties of undefined (reading 'status')
    at /home/container/dist/index.js:143:56
    at IncomingMessage.<anonymous> (/home/container/dist/index.js:117:17)
    at IncomingMessage.emit (node:events:529:35)
    at endReadableNT (node:internal/streams/readable:1368:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

https://modrinth.com/mod/playerhealthindicators

Ghosty920 commented 2 months ago

i somehow put the same number of ?

sylus-squared commented 2 months ago

ghhhh I have fixed that bug so many times Working on a permanent fix

Ghosty920 commented 2 months ago

wip womp

sylus-squared commented 2 months ago

Fixed now, was caused by the api not returning this stuff when a file is in the que If only there was some way to know how the API responds in different scenarios Nah not possible