Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ServerUpdater does not work: can only load a str as an ACF #39

Closed
iv-mexx opened this issue Aug 22, 2017 · 4 comments · Fixed by #40
Closed

ServerUpdater does not work: can only load a str as an ACF #39

iv-mexx opened this issue Aug 22, 2017 · 4 comments · Fixed by #40

Comments

@iv-mexx
Copy link
Contributor

iv-mexx commented Aug 22, 2017

I'm encountering this error with Serverthrall when its necessary to update the server:

Traceback (most recent call last):
  File "D:\Documents\GitHub\serverthrall\serverthrall\thrall.py", line 55, in start
    plugin.tick()
  File "D:\Documents\GitHub\serverthrall\serverthrall\plugins\intervaltickplugin.py", line 39, in tick
    self.tick_interval()
  File "D:\Documents\GitHub\serverthrall\serverthrall\plugins\serverupdater.py", line 110, in tick_interval
    is_available, current, target = self.is_update_available()
  File "D:\Documents\GitHub\serverthrall\serverthrall\plugins\serverupdater.py", line 84, in is_update_available
    available_build_id, exc = self.get_available_build_id()
  File "D:\Documents\GitHub\serverthrall\serverthrall\plugins\serverupdater.py", line 59, in get_available_build_id
    app_info = self.steamcmd.get_app_info(settings.CONAN_SERVER_APP_ID)
  File "D:\Documents\GitHub\serverthrall\serverthrall\steamcmd.py", line 67, in get_app_info
    return acf.loads('\n'.join(acf_output))
  File "C:\Python27\lib\site-packages\steamfiles\acf.py", line 15, in loads
    raise TypeError('can only load a str as an ACF')
TypeError: can only load a str as an ACF
@NullSoldier
Copy link
Owner

This is a little odd, I really did investigate this deeply. The only issue that could be happening here is that a bytes type is being passed in. I couldn't reproduce this locally and It shouldn't be happening.

If this comes up again I'm going to try and reproduce this another way. Could you by any chance download the latest EXE and see if this fixes it?

@NullSoldier NullSoldier added this to the ServerThrall 2.1 milestone Aug 23, 2017
@iv-mexx
Copy link
Contributor Author

iv-mexx commented Aug 23, 2017

I will check your fix later today.
By the way, I did not use the exe because I tried to test NullSoldier/serverthrallapi#6 and thus had to change the API url to my local server

@NullSoldier
Copy link
Owner

NullSoldier commented Aug 23, 2017 via email

@iv-mexx
Copy link
Contributor Author

iv-mexx commented Aug 23, 2017

Oh lol, ok I'll do and try again when I come home today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants