Code Monkey home page Code Monkey logo

Comments (12)

jansenbe avatar jansenbe commented on June 1, 2024

Can you share the details of the error? Please press F12 and go to the console output and provide the text in red or a screenshot of the console window

from modernization.

derLarsonaut avatar derLarsonaut commented on June 1, 2024

HTTP404: NICHT GEFUNDEN: Der Server hat keine Übereinstimmungen für den angeforderten URI (Uniform Resource Identifier) gefunden.
(Fetch)GET - https://XXXXXXXXXXmod.azurewebsites.net/api/ModernizePage?SiteUrl=https%3A%2F%2FXXXXXXXXXX.sharepoint.com%2Fverwaltung%2Ftestumgebung%2F&PageUrl=https%3A%2F%2FXXXXXXXXXX.sharepoint.com%2Fverwaltung%2Ftestumgebung%2FSitePages%2FHomepage.aspx

from modernization.

derLarsonaut avatar derLarsonaut commented on June 1, 2024

an when i use edge i receive this error message: Busy generating a modern version of Homepage.aspx...
Error: SyntaxError: Fehler beim Lesen

from modernization.

jansenbe avatar jansenbe commented on June 1, 2024

This looks like the bug I've fixed yesterday. When you've enabled page transformation for a site did you use the same casing for the URL as the URL actually is shown in SharePoint. There's a string replacement that used to fail when not being case sensitive.

Two ways to fix (both should work)

from modernization.

jansenbe avatar jansenbe commented on June 1, 2024

Also can you please share the output of Get-PnPStorageEntity and check for any red error message in the browser debug console (press F12 on the page that hangs).

from modernization.

derLarsonaut avatar derLarsonaut commented on June 1, 2024

The update to the new version did not help.
Here ist the output og get-pnp…
Key Value Comment Description


Modernization_AzureADApp 3f878259-13b1-44ca-91f8-e5a4074e529c ID of the Azure AD...
Modernization_FunctionHost https://XXXXXXXXXXX.azurewebsites.net Host of the ShareP...
Modernization_PageTransformationEndpoint api/ModernizePage Api endpoint for p...
Modernization_CenterUrl /sites/modernizationcenter Site relative URL ...
Modernization_FeedbackList ModernizationFeedback Name of the create...
Modernization_LearnMoreUrl https://aka.ms/sppnp-pagetransformationui-manual Url shown in the l...

from modernization.

derLarsonaut avatar derLarsonaut commented on June 1, 2024

HTTP404: NICHT GEFUNDEN: Der Server hat keine Übereinstimmungen für den angeforderten URI (Uniform Resource Identifier) gefunden.
(Fetch)GET - https://XXXXXXXXXX.azurewebsites.net/api/ModernizePage?SiteUrl=https%3A%2F%2FXXXXXXXXXX.sharepoint.com%2Fverwaltung%2Ftestumgebung&PageUrl=https%3A%2F%2XXXXXXXXXX.sharepoint.com%2Fverwaltung%2Ftestumgebung%2FSitePages%2FHomepage.aspx

modernizePageServiceCall() failed: SyntaxError: Fehler beim Lesen

in Render(). Errorstring = SyntaxError: Fehler beim Lesen

from modernization.

jansenbe avatar jansenbe commented on June 1, 2024

Hey @derLarsonaut ,

Can you check some more things:

  • Did you get errors while provisioning the function? If you used upper case characters in the older versions of the script then this could result in errors when configuring the function app. If you go check the web settings of the function app and don't see properties like CLIENT_ID and CLIENT_SECRET then this needs to be corrected
  • Go to https://http://aad.portal.azure.com, click on "Azure Active Directory", click on "App registrations", type in SharePoint and set the drop down to "All Apps". Click on "SharePointPnP.Modernization", click on "SharePointPnP.Modernization" underneath "Managed application in local directory", click on "Permissions". You should see 2 admin consented permissions, if that's not the case then the admin consent step was not yet done. You can do that then by clicking on the "Grant admin consent for..." button
  • Third thing to check is if the permission was correctly granted, if the previous step is not done then this might have failed as well. Please run Get-PnPTenantServicePrincipalPermissionGrants and verify there's a permission returned with Resource = "SharePointPnP.Modernization" and Scope = "user_impersonation". If you don't see this permission grant then please run Grant-PnPTenantServicePrincipalPermission -Scope "user_impersonation" -Resource "SharePointPnP.Modernization"

I'm currently writing a troubleshooting guide and have already improved the Azure setup process, but the permission grant in Azure stays a manual thing. Thanks for testing and let me know if this gets you unblocked. If not then let's set a quick call to verify things.

from modernization.

jansenbe avatar jansenbe commented on June 1, 2024

Hi @derLarsonaut,

I've created a troubleshooting guide over here: https://github.com/SharePoint/sp-dev-modernization/blob/master/Solutions/PageTransformationUI/docs/troubleshootingguide.md

Not sure if you still see the error, but that guide will help you troubleshoot the issue.

from modernization.

derLarsonaut avatar derLarsonaut commented on June 1, 2024

Hi @jansenbe Thanks a lot for your time.
I found the problem. The deploy of the service binaries to the azure function app was not successfull. I tried it again via Kudu and know it works!
Lars

from modernization.

jansenbe avatar jansenbe commented on June 1, 2024

Good news @derLarsonaut.

Any idea why it failed in the first place? Did you use the setup script or did it manually? Any errors from that process that you recall?

from modernization.

derLarsonaut avatar derLarsonaut commented on June 1, 2024

@jansenbe I followed this page: https://github.com/SharePoint/sp-dev-modernization/blob/master/Solutions/PageTransformationUI/docs/manual%20setup/modernization-ui-manual-azure.md
I probably didn't read the message correctly after uploading via kudo.

from modernization.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.