Pushbullet DeviceID to large for int32

Getting this Error when entering my device ID:

Request Failed: Could not convert string to integer: 5629499534213120. Path ‘DeviceId’, line 1, position 98.

Exception
Newtonsoft.Json.JsonReaderException: Could not convert string to integer: 5629499534213120. Path ‘DeviceId’, line 1, position 98.
at Newtonsoft.Json.JsonReader.ReadAsInt32Internal()
at Newtonsoft.Json.JsonTextReader.ReadAsInt32()
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at NzbDrone.Api.Extensions.ReqResExtensions.FromJson(Stream body, Type type) in m:\BuildAgent2\work\328d72309b633a8\src\zbDrone.Api\Extensions\ReqResExtensions.cs:line 31
at NzbDrone.Api.Commands.CommandModule.StartCommand(CommandResource commandResource) in m:\BuildAgent2\work\328d72309b633a8\src\zbDrone.Api\Commands\CommandModule.cs:line 49
at NzbDrone.Api.REST.RestModule1.<set_CreateResource>b__f(Object options) in m:\\BuildAgent2\\work\\328d72309b633a8\\src\zbDrone.Api\\REST\\RestModule.cs:line 155 at CallSite.Target(Closure , CallSite , Func2 , Object )
at Nancy.Routing.Route.<>c__DisplayClass4.b__3(Object parameters, CancellationToken context)

Where are you getting the ID from? Mines less than 80000, big jump there.

You should get it from the URL: https://www.pushbullet.com/push/note?device_id=ID_IS_HERE

Yup that’s where I get mine.

I just signed up for Pushbullet yesterday.

Looks just like this:
https://www.pushbullet.com/push/note?device_id=5629499534213120

Sounds like they changed something, I’ve pushed a fix to develop that should resolve this for you.

Coolio.
I also emailed the pushbullet Dev and they confirmed the new larger IDs are due to database changes that took place this weekend.

Thanks for the quick update but still not working:

Request Failed: Could not convert string to integer: 5629499534213120. Path ‘DeviceId’, line 1, position 98.

Newtonsoft.Json.JsonReaderException: Could not convert string to integer: 5629499534213120. Path ‘DeviceId’, line 1, position 98.
at Newtonsoft.Json.JsonReader.ReadAsInt32Internal()
at Newtonsoft.Json.JsonTextReader.ReadAsInt32()
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at NzbDrone.Api.Extensions.ReqResExtensions.FromJson(Stream body, Type type) in m:\BuildAgent2\work\328d72309b633a8\src\zbDrone.Api\Extensions\ReqResExtensions.cs:line 31
at NzbDrone.Api.Commands.CommandModule.StartCommand(CommandResource commandResource) in m:\BuildAgent2\work\328d72309b633a8\src\zbDrone.Api\Commands\CommandModule.cs:line 49
at NzbDrone.Api.REST.RestModule1.<set_CreateResource>b__f(Object options) in m:\\BuildAgent2\\work\\328d72309b633a8\\src\zbDrone.Api\\REST\\RestModule.cs:line 155 at CallSite.Target(Closure , CallSite , Func2 , Object )
at Nancy.Routing.Route.<>c__DisplayClass4.b__3(Object parameters, CancellationToken context)

And

Request Failed: Object of type ‘System.String’ cannot be converted to type ‘System.Int64’.

System.ArgumentException: Object of type ‘System.String’ cannot be converted to type ‘System.Int64’.
at System.RuntimeType.TryChangeType(Object value, Binder binder, CultureInfo culture, Boolean needsSpecialCast)
at System.RuntimeType.CheckValue(Object value, Binder binder, CultureInfo culture, BindingFlags invokeAttr)
at System.Reflection.MethodBase.CheckArguments(Object[] parameters, Binder binder, BindingFlags invokeAttr, CultureInfo culture, Signature sig)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)
at NzbDrone.Api.ClientSchema.SchemaBuilder.ReadFormSchema(List1 fields, Type targetType) in m:\\BuildAgent2\\work\\328d72309b633a8\\src\zbDrone.Api\\ClientSchema\\SchemaBuilder.cs:line 88 at NzbDrone.Api.ProviderModuleBase3.GetDefinition(TProviderResource providerResource) in m:\BuildAgent2\work\328d72309b633a8\src\zbDrone.Api\ProviderModuleBase.cs:line 85
at NzbDrone.Api.ProviderModuleBase3.CreateProvider(TProviderResource indexerResource) in m:\\BuildAgent2\\work\\328d72309b633a8\\src\zbDrone.Api\\ProviderModuleBase.cs:line 64 at NzbDrone.Api.REST.RestModule1.<set_CreateResource>b__f(Object options) in m:\BuildAgent2\work\328d72309b633a8\src\zbDrone.Api\REST\RestModule.cs:line 155
at CallSite.Target(Closure , CallSite , Func`2 , Object )
at Nancy.Routing.Route.<>c__DisplayClass4.b__3(Object parameters, CancellationToken context)

Ahh, missed it, pushed to develop. You can switch to it or wait for the push to master, but that won’t likely be until next week.

Also seeing this on 64bit sys

to type ‘System.Int64’. Path ‘DeviceId’, line 1, position 98.

Can’t tell when in Dec this discussion was occurring, but just installed develop build 2.0.0.1017 this am.

I was looking for what the device id was suppose to be and found it here… But was not sure if I was suppose to use the “human readable” id listed on the pushbullet webpage list of devices and friends? In my case I have my XT907 listed, but I have to use the one in the url from what your indicating here…

PushBullet is now showing the device_iden in the URL, which is an alpha numeric ID, instead of the previous numeric only ID, but that doesn’t look like an ID that can be used for sending notifications.

I’ve reached out to the pushover developers to see how this should be addressed, as this is the 2nd issue in the last month.

Is there a fix for this yet? I’m still getting an error when I test, plus I cannot save the notification. ( I’ve entered the alpha numeric ID from the URL)

Error converting value “XXXXXXXXXXXXXXxxxxxx” to type ‘System.Int64’. Path ‘DeviceId’, line 1, position 115. —> System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt64(String value, NumberStyles options, NumberFormatInfo numfmt)
at System.String.System.IConvertible.ToInt64(IFormatProvider provider)
at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, Object value, CultureInfo culture, JsonContract contract, Type targetType)
— End of inner exception stack trace —
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, Object value, CultureInfo culture, JsonContract contract, Type targetType)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at NzbDrone.Api.Extensions.ReqResExtensions.FromJson(Stream body, Type type) in m:\buildAgent1\work\328d72309b633a8\src\zbDrone.Api\Extensions\ReqResExtensions.cs:line 31
at NzbDrone.Api.Commands.CommandModule.StartCommand(CommandResource commandResource) in m:\buildAgent1\work\328d72309b633a8\src\zbDrone.Api\Commands\CommandModule.cs:line 49
at NzbDrone.Api.REST.RestModule1.<set_CreateResource>b__f(Object options) in m:\\buildAgent1\\work\\328d72309b633a8\\src\zbDrone.Api\\REST\\RestModule.cs:line 155 at CallSite.Target(Closure , CallSite , Func2 , Object )
at Nancy.Routing.Route.<>c__DisplayClass4.b__3(Object parameters, CancellationToken context)

Not yet, I’ll update this Trello card when it is: https://trello.com/c/5tzW7Bpl/504-pushbullet-use-device-iden-for-new-users