Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting an error during npm run publish #82

Open
alexleely opened this issue Jun 16, 2020 · 2 comments
Open

Getting an error during npm run publish #82

alexleely opened this issue Jun 16, 2020 · 2 comments

Comments

@alexleely
Copy link

alexleely commented Jun 16, 2020

Hi,

I have hit an error during my Azure Pipline deployment and cannot seem to resolve. I apologise in advance if this is the wrong place but it seems to be trigger druing IsOnPremUrl.
Below is the error that I encounter:

Unhandled rejection TypeError: Cannot read property 'indexOf' of null
at isOnPremUrl (C:\agent_work\2\s\node_modules\node-sp-auth\lib\src\auth\IAuthOptions.js:6:17)
at Object.isTmgCredentialsOnpremise (C:\agent_work\2\s\node_modules\node-sp-auth\lib\src\auth\IAuthOptions.js:41:20)
at Function.resolve (C:\agent_work\2\s\node_modules\node-sp-auth\lib\src\auth\AuthResolverFactory.js:18:25)
at Object.getAuth (C:\agent_work\2\s\node_modules\node-sp-auth\lib\src\index.js:8:54)
at C:\agent_work\2\s\node_modules\sp-request\lib\src\core\SPRequest.js:40:20
at coreRequest (C:\agent_work\2\s\node_modules\sp-request\lib\src\core\SPRequest.js:22:16)
at spRequestFunc (C:\agent_work\2\s\node_modules\sp-request\lib\src\core\SPRequest.js:69:20)
at Function.spRequestFunc.(anonymous function) [as get] (C:\agent_work\2\s\node_modules\sp-request\lib\src\core\SPRequest.js:109:24)
at C:\agent_work\2\s\node_modules\sp-build-tasks\dist\utils\files.js:82:31
at new Promise ()
at Files.getServerRelativeUrl (C:\agent_work\2\s\node_modules\sp-build-tasks\dist\utils\files.js:76:20)
at Files.getFiles (C:\agent_work\2\s\node_modules\sp-build-tasks\dist\utils\files.js:97:26)
at C:\agent_work\2\s\node_modules\sp-build-tasks\dist\tasks\sync.js:101:42
at step (C:\agent_work\2\s\node_modules\sp-build-tasks\dist\tasks\sync.js:33:23)
at Object.next (C:\agent_work\2\s\node_modules\sp-build-tasks\dist\tasks\sync.js:14:53)
at fulfilled (C:\agent_work\2\s\node_modules\sp-build-tasks\dist\tasks\sync.js:5:58)
at process._tickCallback (internal/process/next_tick.js:68:7)

[20:16:58] The following tasks did not complete: push
[20:16:58] Did you forget to signal async completion?

I need some help to get some direction on how to solve this problem.

Do let me know if there are another information I can provide.

Thank you.

@s-KaiNet
Copy link
Owner

Hi,

most likely you haven't passed the site url in your pipeline, or you use wrong configuration options. I would check that the parameters, passing to node-sp-auth are valid.

@alexleely
Copy link
Author

Hi,

Thank you so much for the direction. It seems to work after I ran gulp config --init manually. But still having issue when I use azure dev ops pipline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants