Failing to Export as FBX using Rhino Inside

I am trying to export a RhinoDoc as FBX. But it is exported as a 3DM file still.

Here is my code:

import rhinoinside
try:
    rhinoinside.load()
except:
    pass
import System
import Rhino


doc = Rhino.RhinoDoc.OpenHeadless(".\\version7\\bicolor\\s1001_c56_w15_ct500_h1001_ct1000_dc1_gl_bicolor.3dm")

#archivableDictionary = Rhino.Collections.ArchivableDictionary()
#result = doc.Export(".\\test.fbx", archivableDictionary)
#result = doc.Export(".\\test.fbx")

#fwo = Rhino.FileIO.FileWriteOptions()

#result = doc.WriteFile(".\\test.fbx", fwo)

fbxo = Rhino.FileIO.FileFbxWriteOptions()
result = Rhino.FileIO.FileFbx.Write(".\\test.fbx", doc, fbxo)

print("result:", result)
doc.Dispose()

Assigned to Rhino.inside category

Update: On a different machine it seems to work. So maybe I messed up somewhere.

So it seems to work with Rhino 8.1 but it sees to fail with Rhino 8.3