chr233 / ASFBuffBot

ASF Buff 自动发货插件
GNU Affero General Public License v3.0
37 stars 5 forks source link

获取buff api请求失败 #4

Open Megalounge opened 1 year ago

Megalounge commented 1 year ago

获取buff api请求失败 获取5次均失败

Error Log / 错误日志

ASFBuffBot 遇到错误, 日志如下
UrlGetToJsonObject() 请求失败:https://buff.163.com/account/api/user/info
UrlGetToJsonObject() System.TypeLoadException
   at System.ModuleHandle.ResolveType(QCallModule, Int32, IntPtr*, Int32, IntPtr*, Int32, ObjectHandleOnStack)
   at System.ModuleHandle.ResolveTypeHandle(Int32, RuntimeTypeHandle[], RuntimeTypeHandle[])
   at System.Reflection.RuntimeModule.ResolveType(Int32, Type[], Type[])
   at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(MetadataToken, MetadataImport& , RuntimeModule, MetadataToken, RuntimeType, Boolean, ListBuilder`1&, RuntimeType& , IRuntimeMethodInfo& , Boolean& )
   at System.Reflection.CustomAttribute.IsCustomAttributeDefined(RuntimeModule, Int32, RuntimeType, Int32, Boolean)
   at System.Reflection.CustomAttribute.IsDefined(RuntimeMethodInfo, RuntimeType, Boolean)
   at Newtonsoft.Json.Serialization.DefaultContractResolver.IsValidCallback(MethodInfo method, ParameterInfo[] parameters, Type attributeType, MethodInfo currentCallback, Type& prevAttributeType)
   at Newtonsoft.Json.Serialization.DefaultContractResolver.GetCallbackMethodsForType(Type type, List`1& onSerializing, List`1& onSerialized, List`1& onDeserializing, List`1& onDeserialized, List`1& onError)
   at Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveCallbackMethods(JsonContract contract, Type t)
   at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateObjectContract(Type objectType)
   at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract(Type objectType)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey, Func`2)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonSerializer.Deserialize[T](JsonReader reader)
   at ArchiSteamFarm.Web.WebBrowser.UrlGetToJsonObject[T](Uri request, IReadOnlyCollection`1 headers, Uri referer, ERequestOptions requestOptions, Byte maxTries, Int32 rateLimitingDelay)
   at ArchiSteamFarm.Web.WebBrowser.UrlGetToJsonObject[T](Uri request, IReadOnlyCollection`1 headers, Uri referer, ERequestOptions requestOptions, Byte maxTries, Int32 rateLimitingDelay)

在经过重启. 更换代理, 手动输入cookie等操作均失败后 决定submit issue来排bug

imhuimie commented 1 year ago

一样的问题

chr233 commented 1 year ago

反序列化仍旧有问题,请尝试使用自编译版本的ASF

需要使用 generic 后缀的ASF,或者自行编译的ASF

基于 5.4.8.3 版本编译的ASF已上传到 release

chr233 commented 1 year ago

https://github.com/chr233/ASFBuffBot/releases/download/1.1.0.2/ASF_5.4.8.3.7z