Unable to Create Branch Line or Revert Commit from Revision History (Newtonsoft.Json.JsonReaderException)
0
Hi Everyone,I'm facing an issue in Mendix Studio Pro 10.24.0 (Build 73019) where I'm unable to create a branch line or revert a commit from the Revision History.Whenever I select a revision, Studio Pro throws the following exception:Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: A. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() 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 Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonConverter[] converters) at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonConverter[] converters) at Mendix.Modeler.VersionControl.Git.RevisionMetadata.RevisionMetadataManager.FromJson(String json) in Mendix.Modeler.VersionControl.Git\RevisionMetadata\RevisionMetadataManager.cs:line 25 at Mendix.Modeler.VersionControl.Git.CommandLine.Readers.BranchHistoryReader.TryParseCollectedCommitLines() in Mendix.Modeler.VersionControl.Git\CommandLine\Readers\BranchHistoryReader.cs:line 67 at Mendix.Modeler.VersionControl.Git.CommandLine.Readers.BranchHistoryReader.ShouldAppendLine(String line) in Mendix.Modeler.VersionControl.Git\CommandLine\Readers\BranchHistoryReader.cs:line 39 at Mendix.Modeler.VersionControl.Git.CommandLine.Readers.GitResponseReader`1.Handle(String line, Boolean addNewLine) in Mendix.Modeler.VersionControl.Git\CommandLine\Readers\GitResponseReader.cs:line 52 at Mendix.Modeler.VersionControl.Git.GitProcessRunner.<>c__DisplayClass11_0`1.<Call>b__0(Object s, DataReceivedEventArgs a) in Mendix.Modeler.VersionControl.Git\CommandLine\GitProcessRunner.cs:line 117 at System.Diagnostics.AsyncStreamReader.FlushMessageQueue(Boolean rethrowInNewThread)--- End of stack trace from previous location --- at System.Threading.QueueUserWorkItemCallback.Execute() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()(or)Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: A. Path '', line 0, position 0.at Newtonsoft.Json.JsonTextReader.ParseValue()at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(...)at Newtonsoft.Json.JsonConvert.DeserializeObject(...)at Mendix.Modeler.VersionControl.Git.RevisionMetadata.RevisionMetadataManager.FromJson(String json)at Mendix.Modeler.VersionControl.Git.CommandLine.Readers.BranchHistoryReader.TryParseCollectedCommitLines()at Mendix.Modeler.VersionControl.Git.CommandLine.Readers.GitResponseReader`1.Handle(...)IssueThe problem occurs only when:Creating a Branch Line from an older revision.Reverting a commit from Revision History.All other Git operations (Commit, Pull, Push, Merge) work normally.Anyone faced this type of issue?Any suggestions or guidance would be greatly appreciated.Thank you!
asked
Santhosh Kumar S
1 answers
0
If you view the revision in the History Dialogue, does it show the Mendix version, or is that field blank?
If the field is blank, it means the metadata is missing for this commit. This can happen if a commit is created outside Studio Pro, of if you've encountered a bug inside Studio Pro. There recently was a bug (solved in 10.24.22 iirc) that metadata could be empty after rebasing.
To prevent this for future commits, update to the newest LTS version. For existing commits I don't think this can be fixed, but I'm not 100% certain.
If the field is showing a Mendix version (so the metadata exists), I'm not sure what's going on, and I would recommend submitting a Support ticket.