Open Closed

Volo.Docs with Mongo error: The given key GitHubRootUrl was not present #2766


User avatar
0
simix.markus created

We follow the documentation to integrate Docs module. In sql it seems ok, but with mongo we get the error.

  • ABP Framework version: v5.1.4
  • UI type: MVC
  • DB provider: MongoDB
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:

  • Steps to reproduce the issue:" Run the project in zip, login, and got to /Documents

Sample project:


3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    We will check this.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    This is right JSON of mongodb.

    [
      {
        "_id": {"$binary": {"base64": "SFPE7JswPI6PCzoCvemr2w==", "subType": "03"}},
        "ConcurrencyStamp": "a412abf04f4049cc8125bec75ced62b2",
        "DefaultDocumentName": "Index",
        "DocumentStoreType": "GitHub",
        "Format": "md",
        "GitHubAccessToken": "ghp_xxx",
        "GitHubRootUrl": "https://github.com/simixsistemas/SuperMidia.Cloud.Docs/tree/main/",
        "GitHubUserAgent": null,
        "LatestVersionBranchName": null,
        "MainWebsiteUrl": null,
        "MinimumVersion": null,
        "Name": "Simix SuperMidia (GitHub)",
        "NavigationDocumentName": "docs-nav.json",
        "ParametersDocumentName": "docs-params.json",
        "ShortName": "cloud",
        "VersionBranchPrefix": null
      }
    ]
    
  • User Avatar
    0
    simix.markus created

    Hi, thanks! Everthing is working now, besides your template we need add the values to MainWebsiteUrl e VersionBranchPrefix to make it work. We have open a PR for the documentation. https://github.com/abpframework/abp/pull/12114

Made with ❤️ on ABP v9.1.0-preview. Updated on December 12, 2024, 07:15