Newtonsoft.Json.JsonSerializationException

403 views
Skip to first unread message

Saurav Gupta

unread,
Jul 5, 2022, 1:18:32 PM7/5/22
to Google Ads API and AdWords API Forum
As per below error message, we are getting an error in the GRPC layer.  This indicates an issue with the api upgrade. Can you let us know the root cause for same??

Unhandled Exception: Newtonsoft.Json.JsonSerializationException: Error getting value from 'Value' on 'Grpc.Core.Metadata+Entry'. ---> System.InvalidOperationException: Cannot access string value of a binary metadata entry
   at Grpc.Core.Metadata.Entry.get_Value()
   at GetValue(Object )
   at Newtonsoft.Json.Serialization.DynamicValueProvider.GetValue(Object target)
   --- End of inner exception stack trace ---
   at Newtonsoft.Json.Serialization.DynamicValueProvider.GetValue(Object target)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CalculatePropertyValues(JsonWriter writer, Object value, JsonContainerContract contract, JsonProperty member, JsonProperty property, JsonContract& memberContract, Object& memberValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList(JsonWriter writer, IEnumerable values, JsonArrayContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList(JsonWriter writer, IEnumerable values, JsonArrayContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)
   at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType)
   at Newtonsoft.Json.JsonConvert.SerializeObjectInternal(Object value, Type type, JsonSerializer jsonSerializer)
   at Newtonsoft.Json.JsonConvert.SerializeObject(Object value)
   at Microsoft.PipelineStudio.BuildModules.CustomActivityCommand`1.Run()
   at Microsoft.PipelineStudio.CustomActivities.ExecuteCustomCSharp.Program.Main(String[] args)

Google Ads API Forum Advisor

unread,
Jul 5, 2022, 1:22:49 PM7/5/22
to saura...@gmail.com, adwor...@googlegroups.com
Hi Saurav,

Thank you for reaching out to the Google Ads API support team.

To investigate the issue further, could you please provide the complete request and response logs, with the request-id? If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link.You can provide it via Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead. Let me know if you have any questions.

Thanks,
Google Logo
Nirmitabahen Gaurav
Google Ads API Team
 

 

ref:_00D1U1174p._5004Q2cGGcU:ref
Reply all
Reply to author
Forward
0 new messages