Giter Club home page Giter Club logo

Comments (53)

32Red avatar 32Red commented on July 22, 2024 1

Starting SupportBoi version 2.1.0-B...
Loading config "C:\Users\32Red\Downloads\config.yml"

Unhandled Exception: System.InvalidCastException: Null object cannot be converted to a value type.
at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
at Newtonsoft.Json.Linq.Extensions.Convert[T,U](T token)
at SupportBoi.Config.LoadConfig()
at SupportBoi.SupportBoi.Reload()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ThreadPoolWorkQueue.Dispatch()

from supportboi.

KarlOfDuty avatar KarlOfDuty commented on July 22, 2024

Put your config into a yaml validator.

from supportboi.

32Red avatar 32Red commented on July 22, 2024

sorry, but how do i do that?

from supportboi.

KarlOfDuty avatar KarlOfDuty commented on July 22, 2024

https://lmgtfy.com/?q=yaml+validator&iie=1

from supportboi.

32Red avatar 32Red commented on July 22, 2024

image

from supportboi.

KarlOfDuty avatar KarlOfDuty commented on July 22, 2024

image

from supportboi.

KarlOfDuty avatar KarlOfDuty commented on July 22, 2024

I am not even sure where you got that from, that's not the config, thats not even yaml.

from supportboi.

32Red avatar 32Red commented on July 22, 2024

lol it was in the support boi file

from supportboi.

32Red avatar 32Red commented on July 22, 2024

could you send the original file if possible?

from supportboi.

KarlOfDuty avatar KarlOfDuty commented on July 22, 2024

Just delete it and run the bot again

from supportboi.

32Red avatar 32Red commented on July 22, 2024

alright

from supportboi.

32Red avatar 32Red commented on July 22, 2024

i re-installed it and
image

from supportboi.

32Red avatar 32Red commented on July 22, 2024

same issue 😭

from supportboi.

KarlOfDuty avatar KarlOfDuty commented on July 22, 2024

I am very confused on what you are doing, just use the config the bot generates for you, stop putting code in it.

from supportboi.

32Red avatar 32Red commented on July 22, 2024

so i write it in myself?

from supportboi.

KarlOfDuty avatar KarlOfDuty commented on July 22, 2024

I don't really know what you mean by that, you have to put in things like the bot token and command permissions yes

from supportboi.

32Red avatar 32Red commented on July 22, 2024

can
i use the Defualt config as a template?

from supportboi.

KarlOfDuty avatar KarlOfDuty commented on July 22, 2024

It is the thing you should edit, yes

from supportboi.

32Red avatar 32Red commented on July 22, 2024

Starting SupportBoi version 2.1.0-B...
Loading config "C:\Users\32Red\Downloads\config.yml"

Unhandled Exception: System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(ReadOnlySpan1 str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseUInt64(ReadOnlySpan1 value, NumberStyles options, NumberFormatInfo numfmt)
at System.String.System.IConvertible.ToUInt64(IFormatProvider provider)
at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
at Newtonsoft.Json.Linq.Extensions.Convert[T,U](T token)
at Newtonsoft.Json.Linq.Extensions.Convert[T,U](IEnumerable1 source)+MoveNext() at System.Collections.Generic.LargeArrayBuilder1.AddRange(IEnumerable1 items) at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable1 source)
at SupportBoi.Config.LoadConfig()
at SupportBoi.SupportBoi.Reload()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ThreadPoolWorkQueue.Dispatch()

hmm

from supportboi.

KarlOfDuty avatar KarlOfDuty commented on July 22, 2024

Just start from the default config and add one thing at a time, then you know what the issue is.

from supportboi.

32Red avatar 32Red commented on July 22, 2024

i did that. i went threw it VERY carefully and i found nothing... and it gave me the same message error

from supportboi.

KarlOfDuty avatar KarlOfDuty commented on July 22, 2024

and what did you add to the config to make this happen? I recommend you just keep the default config and add your bot token for now.

from supportboi.

KarlOfDuty avatar KarlOfDuty commented on July 22, 2024

I'm not really sure how you are having so many issues with this, there are a lot of users of this bot and I don't think I have ever had anyone with this many issues before.

from supportboi.

32Red avatar 32Red commented on July 22, 2024

hmm
do you have a default of just the emc supportboi? i can use that for now

from supportboi.

KarlOfDuty avatar KarlOfDuty commented on July 22, 2024

I can't just give out our passwords and auth tokens...

from supportboi.

32Red avatar 32Red commented on July 22, 2024

oh

right

from supportboi.

KarlOfDuty avatar KarlOfDuty commented on July 22, 2024

Just add one thing, start the bot and see if it complains, then you know there is something wrong with the thing you added and you can tell me what that one thing is.

from supportboi.

32Red avatar 32Red commented on July 22, 2024

ok

from supportboi.

KarlOfDuty avatar KarlOfDuty commented on July 22, 2024

I recommend starting with your bot token and then do database credentials as those are checked first.

from supportboi.

32Red avatar 32Red commented on July 22, 2024

do i edit the log channel and stuff?

from supportboi.

KarlOfDuty avatar KarlOfDuty commented on July 22, 2024

no, just start with the token

from supportboi.

32Red avatar 32Red commented on July 22, 2024

ok

from supportboi.

KarlOfDuty avatar KarlOfDuty commented on July 22, 2024

then do one thing at a time until it breaks

from supportboi.

32Red avatar 32Red commented on July 22, 2024

ok
good plan

from supportboi.

32Red avatar 32Red commented on July 22, 2024

Starting SupportBoi version 2.1.0-B...
Loading config "C:\Users\32Red\Downloads\config.yml"

Unhandled Exception: System.ArgumentNullException: Value cannot be null.
Parameter name: value
at Newtonsoft.Json.Linq.Extensions.Value[T,U](IEnumerable`1 value)
at SupportBoi.Config.LoadConfig()
at SupportBoi.SupportBoi.Reload()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ThreadPoolWorkQueue.Dispatch()
is the error i got after just putting in my token

from supportboi.

KarlOfDuty avatar KarlOfDuty commented on July 22, 2024

And what did you do?

from supportboi.

KarlOfDuty avatar KarlOfDuty commented on July 22, 2024

ah token

from supportboi.

32Red avatar 32Red commented on July 22, 2024

ye

from supportboi.

32Red avatar 32Red commented on July 22, 2024

there was nothing else i edited

from supportboi.

KarlOfDuty avatar KarlOfDuty commented on July 22, 2024

does it even work for you if you dont edit anything?

from supportboi.

32Red avatar 32Red commented on July 22, 2024

i just put the token in lol everything else is default
but it didnt work

from supportboi.

KarlOfDuty avatar KarlOfDuty commented on July 22, 2024

like just delete everything from the bot folder except the application and start it again twice

from supportboi.

32Red avatar 32Red commented on July 22, 2024

wait i didnt get it

from supportboi.

KarlOfDuty avatar KarlOfDuty commented on July 22, 2024

I will have to go now so you will have to keep trying on your own, good luck

from supportboi.

32Red avatar 32Red commented on July 22, 2024

okay ill try cya

from supportboi.

KarlOfDuty avatar KarlOfDuty commented on July 22, 2024

if you start it once it creates the config and if you start it again it would try to read that config is what I mean, might be some issue with reading the config at all maybe

from supportboi.

KarlOfDuty avatar KarlOfDuty commented on July 22, 2024

but yeah cya and good luck

from supportboi.

32Red avatar 32Red commented on July 22, 2024

ty

from supportboi.

32Red avatar 32Red commented on July 22, 2024

ok i worked as hard as i could but i got greeted with this... Starting SupportBoi version 2.1.0-B...
Loading config "C:\Users\32Red\Downloads\config.yml"

Unhandled Exception: System.ArgumentNullException: Value cannot be null.
Parameter name: value
at Newtonsoft.Json.Linq.Extensions.Value[T,U](IEnumerable`1 value)
at SupportBoi.Config.LoadConfig()
at SupportBoi.SupportBoi.Reload()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ThreadPoolWorkQueue.Dispatch()

from supportboi.

32Red avatar 32Red commented on July 22, 2024

any help?

from supportboi.

KarlOfDuty avatar KarlOfDuty commented on July 22, 2024

I'm sorry but I have no idea how to help you, no one has had this issue before and I can't recreate it on my end either.

There is likely something very wrong with the system or os you are running it on if literally anything you do just gives the bot garbled data all the time.

from supportboi.

KarlOfDuty avatar KarlOfDuty commented on July 22, 2024

Let me know if you find a solution though, this does sound pretty interesting.

from supportboi.

32Red avatar 32Red commented on July 22, 2024

sad

from supportboi.

Related Issues (20)

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.