mod installation error message question

nyx

New member
opened the game and some of DVNO's mods auto updated but then broke, got this error message. as i have no knowledge regarding coding, was just wondering if this is on heliosphere's end, my end, or if i need to reach out to DVNO about this issue.

in case this is relevant, i tried uploading one of the broken mods as a pmp and there was no errors that way. however, each time i tried installing from the website or updating the mod through the plugin, it remained broken.

thank you!


Code:
Error type: System.InvalidOperationException
   Message: Cannot transcode invalid UTF-8 JSON text to UTF-16 string.
   HResult: 0x80131509
   at System.Text.Json.JsonReaderHelper.TranscodeHelper(ReadOnlySpan`1 utf8Unescaped)
   at System.Text.Json.JsonDocument.GetRawValueAsString(Int32 index)
   at Heliosphere.DownloadTask.<>c.<ManipTokensForOption>b__163_0(JsonElement manip) in /_/DownloadTask.cs:line 1704
   at System.Linq.Enumerable.ListSelectIterator`2.Fill(ReadOnlySpan`1 source, Span`1 destination, Func`2 func)
   at System.Linq.Enumerable.ListSelectIterator`2.ToList()
   at Heliosphere.DownloadTask.ManipTokensForOption(IReadOnlyList`1 rawManipulations) in /_/DownloadTask.cs:line 1702
   at Heliosphere.DownloadTask.ConstructGroups(IDownloadTask_GetVersion info) in /_/DownloadTask.cs:line 1321
   at Heliosphere.DownloadTask.ConstructModPack(IDownloadTask_GetVersion info) in /_/DownloadTask.cs:line 1110
   at Heliosphere.DownloadTask.Run() in /_/DownloadTask.cs:line 177

Error type: System.Text.DecoderFallbackException
   Message: Unable to translate bytes [DB] at index 0 from specified code page to Unicode.
   HResult: 0x80070057
   at System.Text.DecoderExceptionFallbackBuffer.Throw(Byte[] bytesUnknown, Int32 index)
   at System.Text.DecoderExceptionFallbackBuffer.Fallback(Byte[] bytesUnknown, Int32 index)
   at System.Text.Encoding.GetCharCountWithFallback(Byte* pBytesOriginal, Int32 originalByteCount, Int32 bytesConsumedSoFar)
   at System.Text.Json.JsonReaderHelper.TranscodeHelper(ReadOnlySpan`1 utf8Unescaped)
 
Last edited:
Solution
I did some investigation on the original issue, and I think I may have pinpointed the cause. 4.7.2 is out now, which hopefully addresses it. Let me know if you get the UTF-8 transcode error on 4.7.2 or higher!

As for your settings issue, Skia, that's very strange. I can only guess that maybe HS didn't refresh itself to notice the double folders after the first install fail. If HS notices two versions of the same variant installed, it will refuse to do anything to that variant until one of the folders is deleted. I'll take a look at it later.
I don't know if this information will help at all, but I was also having trouble trying to get a DVNO mod to update automatically. It failed with an IO Exception error, but installed manually as a .pmp just fine.

I spent a fair bit trying to check if it was something with Windows or my browser trying to block access to it in some way, but, even after adding exceptions to Defender, Controlled Folder Access, and uBlock Origin, I still am getting this error.

Code:
Error type: System.IO.IOException
   Message: Access to the path '\\?\C:\XIV_Penumbra\hs-Aladdin Sane-2.0.5-DqC\.hs-old' is denied.
   HResult: 0x80131620
   at System.IO.FileSystem.RemoveDirectoryInternal(String fullPath, Boolean topLevel, Boolean allowDirectoryNotEmpty)
   at System.IO.FileSystem.RemoveDirectoryRecursive(String fullPath, WIN32_FIND_DATA& findData, Boolean topLevel)
   at Heliosphere.DownloadTask.<CreateDirectories>b__135_0() in /_/DownloadTask.cs:line 364
   at Polly.ResiliencePipeline.<>c.<Execute>b__29_0(ResilienceContext _, Action state)
--- End of stack trace from previous location ---
   at Polly.ResiliencePipeline.Execute(Action callback)
   at Heliosphere.DownloadTask.CreateDirectories() in /_/DownloadTask.cs:line 362
   at Heliosphere.DownloadTask.Run() in /_/DownloadTask.cs:line 172

As an extra note, I was also having trouble with Tre a couple days ago, but I think it fixed itself after manually installing then importing it. A couple of the Tre mods seem to refuse to import however. Not sure if that issue has any relevance, but I figured I'd share that just in case it somehow helps find a solution. I believe the error code I was getting with Tre was the same "UTF-8" code that you're getting with this mod.
 
opened the game and some of DVNO's mods auto updated but then broke, got this error message. as i have no knowledge regarding coding, was just wondering if this is on heliosphere's end, my end, or if i need to reach out to DVNO about this issue.

in case this is relevant, i tried uploading one of the broken mods as a pmp and there was no errors that way. however, each time i tried installing from the website or updating the mod through the plugin, it remained broken.

thank you!


Code:
Error type: System.InvalidOperationException
   Message: Cannot transcode invalid UTF-8 JSON text to UTF-16 string.
   HResult: 0x80131509
   at System.Text.Json.JsonReaderHelper.TranscodeHelper(ReadOnlySpan`1 utf8Unescaped)
   at System.Text.Json.JsonDocument.GetRawValueAsString(Int32 index)
   at Heliosphere.DownloadTask.<>c.<ManipTokensForOption>b__163_0(JsonElement manip) in /_/DownloadTask.cs:line 1704
   at System.Linq.Enumerable.ListSelectIterator`2.Fill(ReadOnlySpan`1 source, Span`1 destination, Func`2 func)
   at System.Linq.Enumerable.ListSelectIterator`2.ToList()
   at Heliosphere.DownloadTask.ManipTokensForOption(IReadOnlyList`1 rawManipulations) in /_/DownloadTask.cs:line 1702
   at Heliosphere.DownloadTask.ConstructGroups(IDownloadTask_GetVersion info) in /_/DownloadTask.cs:line 1321
   at Heliosphere.DownloadTask.ConstructModPack(IDownloadTask_GetVersion info) in /_/DownloadTask.cs:line 1110
   at Heliosphere.DownloadTask.Run() in /_/DownloadTask.cs:line 177

Error type: System.Text.DecoderFallbackException
   Message: Unable to translate bytes [DB] at index 0 from specified code page to Unicode.
   HResult: 0x80070057
   at System.Text.DecoderExceptionFallbackBuffer.Throw(Byte[] bytesUnknown, Int32 index)
   at System.Text.DecoderExceptionFallbackBuffer.Fallback(Byte[] bytesUnknown, Int32 index)
   at System.Text.Encoding.GetCharCountWithFallback(Byte* pBytesOriginal, Int32 originalByteCount, Int32 bytesConsumedSoFar)
   at System.Text.Json.JsonReaderHelper.TranscodeHelper(ReadOnlySpan`1 utf8Unescaped)
This happens periodically. I think it's indicative of a network issue, but it's hard to tell. They should usually go away on their own eventually. I can't ever get it to reliably happen, so it's pretty hard for me to debug and see what's happening exactly.

I don't know if this information will help at all, but I was also having trouble trying to get a DVNO mod to update automatically. It failed with an IO Exception error, but installed manually as a .pmp just fine.

I spent a fair bit trying to check if it was something with Windows or my browser trying to block access to it in some way, but, even after adding exceptions to Defender, Controlled Folder Access, and uBlock Origin, I still am getting this error.

Code:
Error type: System.IO.IOException
   Message: Access to the path '\\?\C:\XIV_Penumbra\hs-Aladdin Sane-2.0.5-DqC\.hs-old' is denied.
   HResult: 0x80131620
   at System.IO.FileSystem.RemoveDirectoryInternal(String fullPath, Boolean topLevel, Boolean allowDirectoryNotEmpty)
   at System.IO.FileSystem.RemoveDirectoryRecursive(String fullPath, WIN32_FIND_DATA& findData, Boolean topLevel)
   at Heliosphere.DownloadTask.<CreateDirectories>b__135_0() in /_/DownloadTask.cs:line 364
   at Polly.ResiliencePipeline.<>c.<Execute>b__29_0(ResilienceContext _, Action state)
--- End of stack trace from previous location ---
   at Polly.ResiliencePipeline.Execute(Action callback)
   at Heliosphere.DownloadTask.CreateDirectories() in /_/DownloadTask.cs:line 362
   at Heliosphere.DownloadTask.Run() in /_/DownloadTask.cs:line 172

As an extra note, I was also having trouble with Tre a couple days ago, but I think it fixed itself after manually installing then importing it. A couple of the Tre mods seem to refuse to import however. Not sure if that issue has any relevance, but I figured I'd share that just in case it somehow helps find a solution. I believe the error code I was getting with Tre was the same "UTF-8" code that you're getting with this mod.
Access denied is not something that's in my power to fix. Something on your system is blocking it, but it isn't a bug in Heliosphere.
 
This happens periodically. I think it's indicative of a network issue, but it's hard to tell. They should usually go away on their own eventually. I can't ever get it to reliably happen, so it's pretty hard for me to debug and see what's happening exactly.


Access denied is not something that's in my power to fix. Something on your system is blocking it, but it isn't a bug in Heliosphere.
got it o7 ty
 
This happens periodically. I think it's indicative of a network issue, but it's hard to tell. They should usually go away on their own eventually. I can't ever get it to reliably happen, so it's pretty hard for me to debug and see what's happening exactly.


Access denied is not something that's in my power to fix. Something on your system is blocking it, but it isn't a bug in Heliosphere.
Yeah I was afraid of that, but I guess that just means it's time for more detective work.

Thanks for the response, and it does help to know if I see the UTF-8 error again that it'll likely resolve itself!
 
I think there's an extra issue here, seems related and triggered by this initial failure.

I just tried to update one of my installed mods, and it failed with the exact same error. I just retried, and it was successful the second time, except that HS seems to have forgotten about the version I already had, and instead installed a second copy. And on top of this, it didn't migrate the settings from the previous version to the new one.

I deleted both versions and tried to reinstall again, thinking that it would find the previous settings and migrate them, but it didn't happen. Kind of exacerbated by the fact that it isn't very easy to recover these lost settings so I can reapply them across all my collections.

Not sure if it's the exact same error though. I grabbed this from the dalamud log instead of the notification copy button.

Code:
05:50:13.091 | ERR | [heliosphere-plugin] [ddf5e23a237248bda0a2fcd7e4fe3944] Error downloading version psn0bxw6656mb1k6ppcrhbxc48
    System.InvalidOperationException: Cannot transcode invalid UTF-8 JSON text to UTF-16 string.
     ---> System.Text.DecoderFallbackException: Unable to translate bytes [EC] at index 1 from specified code page to Unicode.
       at System.Text.DecoderExceptionFallbackBuffer.Throw(Byte[] bytesUnknown, Int32 index)
       at System.Text.DecoderExceptionFallbackBuffer.Fallback(Byte[] bytesUnknown, Int32 index)
       at System.Text.Encoding.GetCharCountWithFallback(Byte* pBytesOriginal, Int32 originalByteCount, Int32 bytesConsumedSoFar)
       at System.Text.Json.JsonReaderHelper.TranscodeHelper(ReadOnlySpan`1 utf8Unescaped)
       --- End of inner exception stack trace ---
       at System.Text.Json.JsonReaderHelper.TranscodeHelper(ReadOnlySpan`1 utf8Unescaped)
       at System.Text.Json.JsonDocument.GetRawValueAsString(Int32 index)
       at Heliosphere.DownloadTask.<>c.<ManipTokensForOption>b__163_0(JsonElement manip) in /_/DownloadTask.cs:line 1704
       at System.Linq.Enumerable.ListSelectIterator`2.ToList()
       at Heliosphere.DownloadTask.ManipTokensForOption(IReadOnlyList`1 rawManipulations) in /_/DownloadTask.cs:line 1702
       at Heliosphere.DownloadTask.ConstructGroups(IDownloadTask_GetVersion info) in /_/DownloadTask.cs:line 1321
       at Heliosphere.DownloadTask.ConstructModPack(IDownloadTask_GetVersion info) in /_/DownloadTask.cs:line 1110
       at Heliosphere.DownloadTask.Run() in /_/DownloadTask.cs:line 177
 
I did some investigation on the original issue, and I think I may have pinpointed the cause. 4.7.2 is out now, which hopefully addresses it. Let me know if you get the UTF-8 transcode error on 4.7.2 or higher!

As for your settings issue, Skia, that's very strange. I can only guess that maybe HS didn't refresh itself to notice the double folders after the first install fail. If HS notices two versions of the same variant installed, it will refuse to do anything to that variant until one of the folders is deleted. I'll take a look at it later.
 
Solution
I did some investigation on the original issue, and I think I may have pinpointed the cause. 4.7.2 is out now, which hopefully addresses it. Let me know if you get the UTF-8 transcode error on 4.7.2 or higher!

As for your settings issue, Skia, that's very strange. I can only guess that maybe HS didn't refresh itself to notice the double folders after the first install fail. If HS notices two versions of the same variant installed, it will refuse to do anything to that variant until one of the folders is deleted. I'll take a look at it later.
i tested all the mods that triggered the error code and all of them work now, was able to install with no issue. thank you!
 
Back
Top