Giter Site home page Giter Site logo

Comments (6)

dalexhd avatar dalexhd commented on June 14, 2024

Hi @supermopf 😄

I'll need a bit more info to know that is causing this issue.

What I know:

  1. The function causing this exception is getProductInfo(), here is the full function: https://github.com/DoctorMcKay/node-steam-user/blob/cc39197c4bd554b505dadff5b464c80f5b4d67df/components/apps.js#L230
  2. That means that the problem is the Dynamic Banner Generation:
    steamUser.getProductInfo([data.game_played_app_id], [], function (err, apps) {

To go in deeper I will need you to:

  1. Checkout the dev branch (This branch contains some fixes and also better logging system)
  2. Enable Steam debug at your config file:
  3. Run yarn install
  4. Run the bot and change the game you're playing at Steam. (You should already be verified with your Steam Bot)
  5. Post the content of your log file generated at packages/server/logs directory (Obfuscate any credentials before posting).
  6. Post your Linux screen output like you did before.

from steamspeak.

supermopf avatar supermopf commented on June 14, 2024

Hey @dalexhd,

i followed your steps, but there was no file in packages/server/logs

The crash happens on start, so changing the game is not relevant i guess.

Anyway, heres the terminal output:

yarn run v1.22.4
$ yarn --cwd ./packages/server start
$ cd ../../ && make check-config
$ cross-env TS_NODE_FILES=true NODE_ENV=production ts-node -r tsconfig-paths/register src/index.ts

/home/steamspeak/SteamSpeak/node_modules/ts-node/src/index.ts:434
    return new TSError(diagnosticText, diagnosticCodes)
           ^
TSError: ⨯ Unable to compile TypeScript:
src/core/Website/api/controllers/verify.ts:116:26 - error TS2769: No overload matches this call.
  The last overload gave the following error.
    Argument of type '{ uid: string; dbid: string; steamId: any; }' is not assignable to parameter of type 'Pick<{ _id: any; uid: string; dbid: string; steamId: string; groupId: any; groupNumber: any; } & { _id: any; }, "uid" | "dbid" | "steamId" | "groupId" | "groupNumber"> & { _id?: any; }'.
      Type '{ uid: string; dbid: string; steamId: any; }' is missing the following properties from type 'Pick<{ _id: any; uid: string; dbid: string; steamId: string; groupId: any; groupNumber: any; } & { _id: any; }, "uid" | "dbid" | "steamId" | "groupId" | "groupNumber">': groupId, groupNumber

116             VerifiedClient.create({
                                      ~
117                     uid: client.uniqueIdentifier,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
119                     steamId: steamData.steamId
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
120             });
    ~~~~

  ../../node_modules/@types/mongoose/index.d.ts:3273:5
    3273     create<TCreate = T>(...docs: CreateQuery<TCreate>[]): Promise<T>;
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The last overload is declared here.

    at createTSError (/home/steamspeak/SteamSpeak/node_modules/ts-node/src/index.ts:434:12)
    at reportTSError (/home/steamspeak/SteamSpeak/node_modules/ts-node/src/index.ts:438:19)
    at getOutput (/home/steamspeak/SteamSpeak/node_modules/ts-node/src/index.ts:578:36)
    at Object.compile (/home/steamspeak/SteamSpeak/node_modules/ts-node/src/index.ts:775:32)
    at Module.m._compile (/home/steamspeak/SteamSpeak/node_modules/ts-node/src/index.ts:858:43)
    at Module._extensions..js (internal/modules/cjs/loader.js:1220:10)
    at Object.require.extensions.<computed> [as .ts] (/home/steamspeak/SteamSpeak/node_modules/ts-node/src/index.ts:861:12)
    at Module.load (internal/modules/cjs/loader.js:1049:32)
    at Function.Module._load (internal/modules/cjs/loader.js:937:14)
    at Module.require (internal/modules/cjs/loader.js:1089:19)
    at require (internal/modules/cjs/helpers.js:73:18)
    at Object.<anonymous> (/home/steamspeak/SteamSpeak/packages/server/src/core/Website/api/routes/verify.ts:2:1)
    at Module._compile (internal/modules/cjs/loader.js:1200:30)
    at Module.m._compile (/home/steamspeak/SteamSpeak/node_modules/ts-node/src/index.ts:858:23)
    at Module._extensions..js (internal/modules/cjs/loader.js:1220:10)
    at Object.require.extensions.<computed> [as .ts] (/home/steamspeak/SteamSpeak/node_modules/ts-node/src/index.ts:861:12)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

from steamspeak.

dalexhd avatar dalexhd commented on June 14, 2024

Sorry about that compilation error. It was a mongoose typescript mistake Fixed at #154

Can you try the same steps I told you at #152 (comment)

from steamspeak.

supermopf avatar supermopf commented on June 14, 2024

Hey,

on dev branch this issue does not exist. So i think you can close this with the next release.

Thanks for the quick support^^

from steamspeak.

dalexhd avatar dalexhd commented on June 14, 2024

That are good news 😄.

from steamspeak.

 avatar commented on June 14, 2024

This issue's conversation has been locked. Please file a new issue if you would like to continue the discussion.

from steamspeak.

Related Issues (14)

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.