Skip to content
This repository was archived by the owner on May 30, 2022. It is now read-only.
This repository was archived by the owner on May 30, 2022. It is now read-only.

runtime error #4

Closed
Closed

Description

@Be1zebub

I used swd to batch download 176 addons from the workshop, with a wait of 10 seconds between downloads.
Only 100 addons were successfully downloaded, 76 gave this error.

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x10 pc=0x96b9d2]

goroutine 1 [running]:
main.main()
        C:/Users/SegoCode/Documents/GitHub/swd/swd.go:96 +0x132

it was running via exe file from the releases.

Activity

  1. SegoCode commented on Jan 19, 2022

    @SegoCode
    Owner

    Hi,
    That error appears when there is a connection problem, something has happened when trying to connect to github server or steamworkshopdownloader.io... i need to catch nil err in future versions...

    I've tested and it seems to be working fine, maybe it's a 429 Too Many Requests to the github server to check the version or steamworkshopdownloader.io if you're running it in some kind of loop. or firewall problems, or internet problems

    In future versions I will make it more verbose, to show the errors correctly.

    Share your batch file, maybe we can make a cool script together

  2. Be1zebub commented on Jan 19, 2022

    @Be1zebub
    Author

    i use luvit for batch downloading
    download.lua.txt
    its just a 2 min script, i wanted to download all the addons I subscribed to - without spending a lot of time developing a tool for this :)

  3. Be1zebub commented on Jan 19, 2022

    @Be1zebub
    Author

    btw please add more supported params - like --downloadFormat gmaextract
    this would be very useful for some games, for example, for the Garrys mod, such a payload makes the steamworkshopdownloader.io automatically unpack the .gma
    {"publishedFileId":282498239,"collectionId":null,"hidden":false,"downloadFormat":"gmaextract","autodownload":false}

  4. added
    bug
    on Jan 19, 2022
  5. SegoCode commented on Jan 19, 2022

    @SegoCode
    Owner

    i use luvit for batch downloading download.lua.txt its just a 2 min script, i wanted to download all the addons I subscribed to - without spending a lot of time developing a tool for this :)

    I think the problem is github version check, break when you do many request without token, i make it optional

  6. added a commit that references this issue on Jan 19, 2022
  7. SegoCode commented on Jan 24, 2022

    @SegoCode
    Owner

    New release probably fix the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions