Publishing an npm Github package only works for some organizations that I own - npm-publish

I've been trying to publish a new npm package to my github organization nkemtasoft-react but it keeps failing with a 400 error status code with no message.
Oddly, when I try to publish the same package to one of my other organization backbuk using the same github token I used for nkemtasoft-react, it works.
In trying to figure out what was going on, I made a GET request directly to the npm api https://npm.pkg.github.com/#backbuk/mypackage providing my github PAT as a bearer token to see if I could get the details of mypackage and it returned the details of mypackage.
When I replace mypackage in the url with a non existing package so that the new url becomes https://npm.pkg.github.com/#backbuk/non-existing-module, it returned a 404 error as expected with the descriptive message:
{"error":"npm package \"non-existing-module\" does not exist under owner \"backbuk\""}
However, when I replace the owner from backbuk to nkemtasoft-react (which is still my organization) so that the new url becomes https://npm.pkg.github.com/#nkemtasoft-react/non-existing-module, I was expecting the same 404 error and message as above, but rather, it just throws a 400 error with no message.
Not sure what is going on and I'll be happy to provide more details to get the issue resolved. Thanks.

Related

Umbraco Server Error: Contact Administrator see log for full details. Logs telling 404 error

I am going to use my Umbraco after a long time but I am unable to edit or post new thing. After Publish Changes it Displays the following error but the website is working perfectly in localhost.
That error looks like a permissions issue maybe? Are the permissions set correctly on the folders for the site?

Dockerhub Create Automated Build step stuck at Creating

I used this link (create an Automated Build) from this guide.
The browser error console shows:
https://hub.docker.com/v2/repositories/github//autobuild/
Failed to load resource: the server responded with a status of 403 (FORBIDDEN)
I got this hint from https://github.com/docker/hub-feedback/issues/411#issuecomment-149878749
I replaced the following URL with my values.
https://hub.docker.com/add/automated-build/github/form/<GITHUB USER ID>/<GITHUB REPO NAME>/?namespace=<DOCKERHUB NAMESPACE>
This workaround has been outdated.
The url returns a 404.
Imho, this has to do with dockerhub changing some policies, concerning 'classic' autobuilds & company/user setup.

Error when trying to delete build definitions in TFS web interface

I'm getting a server error when I try to delete build definitions from a project on the Team Foundation Server 2015 web interface.
The error message that pops up is:
Error(s):
500: 500: error
TFS.WebApi.Exception: 500: error
at k (http://timeweb:8080/tfs/_static/tfs/Dev14.M102/_scripts/TFS/min/corejs?v=ITI0eYHCCehqqjk6JTyPaR5R793ETLoY2_Lqz191Pyo1:64:375)
at http://timeweb:8080/tfs/_static/tfs/Dev14.M102/_scripts/TFS/min/corejs?v=ITI0eYHCCehqqjk6JTyPaR5R793ETLoY2_Lqz191Pyo1:64:2955
at d (http://timeweb:8080/tfs/_static/tfs/Dev14.M102/_scripts/TFS/min/corejs?v=ITI0eYHCCehqqjk6JTyPaR5R793ETLoY2_Lqz191Pyo1:64:635)
at http://timeweb:8080/tfs/_static/tfs/Dev14.M102/_scripts/TFS/min/corejs?v=ITI0eYHCCehqqjk6JTyPaR5R793ETLoY2_Lqz191Pyo1:64:2888
at l (http://timeweb:8080/tfs/_static/tfs/Dev14.M102/_scripts/TFS/min/q.js:27:8122)
at http://timeweb:8080/tfs/_static/tfs/Dev14.M102/_scripts/TFS/min/q.js:27:8348
at t.when (http://timeweb:8080/tfs/_static/tfs/Dev14.M102/_scripts/TFS/min/q.js:27:3780)
at t.u.promiseDispatch (http://timeweb:8080/tfs/_static/tfs/Dev14.M102/_scripts/TFS/min/q.js:27:2824)
at http://timeweb:8080/tfs/_static/tfs/Dev14.M102/_scripts/TFS/min/q.js:27:1649
at MessagePort.t (http://timeweb:8080/tfs/_static/tfs/Dev14.M102/_scripts/TFS/min/q.js:27:5773)
I also get a similar error when I try to save changes to a build definition.
I'm doing everything with an administrator account on the server.
It's acting like the user has INSERT permission in the database but not DELETE or UPDATE, but I'm not sure if this is the cause and the permissions in the database seem OK (why would they be configured incorrectly after a fresh install?).
I'm using a local SQL Server Express instance. I'm using Windows Authentication for TFS, and I'm able to login with Windows Authentication and manually delete them from the database using SQL Server Management Studio.
I just did another uninstall/fresh install and I'm still seeing this error. Any insight into the cause or solution would be much appreciated.
UPDATE
A SQL Server trace isn't showing any relevant commands being received when I attempt the delete/edit, so it seems like the error is happening before it even reaches out to the database.
First, please make sure you have enough permission. Such as edit build definition . You can use tf permission command to list the realted permission info.
For example: tf permission /user:userID /collection:http://xxx:8080/tfs/defaultcollection
which will return the modified permission for that user under the collection path. Also work with server path.
Also add your user in Team Project Administrator Group and Build Administrator Group.
Try to clean browser cache and close the browser then try it again.

Xcode OSX Server "Internal Error Creating Bot"

I am trying to create a bot using OSX Server 4.0 and Xcode 6.4.
My project encompasses multiple repositories and uses additional libraries as submodules. When I go to "Product > Create Bot," A dialog appears, saying "Provide repository credentials for this bot."
The dialog shows all of the repositories which I use as submodules. If I attempt to authenticate them by either SSH or https, xcode rejects my credentials.
When I click "Ignore" and finish the setup process, it says "Bot creation failed with error: Internal Error Creating Bot" and gives me no other information.
As a test, I have successfully created a sample project in github which I can create a bot for without a problem. I have tried to add submodules to the sample project and it still can create bots fine.
Can anyone help fix this?
I figured out the answer.
The problem ended up being GitSlave (http://gitslave.sourceforge.net/) which my team was using to keep our repositories updated. Something about the way GitSlave set up the repositories causes Xcode bots to fail with an internal error.
My issues accessing the repositories were unrelated to the internal error and were fixed by creating a new set of SSH keys for the bot instead of using my personal SSH keys, which had different permissions.
Hope this helps anyone else having this problem!
I managed to get past the "provide credentials" dialog, but Xcode Bots would fail with the same "Internal Error Creating Bot" error once I had stepped all the way through the wizard and clicked "Create".
The solution in my case was to change the remote.origin.url setting for my repository from a git#github.com SSH URL to a https://github.com HTTPS URL, and suddenly it just worked.
(This is kind of maddening because I checked every log file and every place where there might be an error report and found nothing. Figured it out through trial and error)

Edit Web Part - HTTP 403 Forbidden Error

I have a webpart in a SharePoint 2007 site. This web part is written in object Model code. I am given Full Control to this Site Collection and can access the page with no issue.
When I tried to Edit it by clicking 'Site Actions--> Edit Page', I got the following error
Error:
The website declined to show this webpage- HTTP 403
Most likely causes:
•This website requires you to log in.
What you can try:
Go back to the previous page.
**More information**
This error (HTTP 403 Forbidden) means that Internet Explorer was able to connect to the website, but it does not have permission to view the webpage.
For more information about HTTP errors, see Help.
is that a user control or something like that which is accessing the File System path ?
if yes then you have to use SPSecurity.RunWithElevatedPrivilages(delegate() {}).
Have a look at this
Thanks
I resolved the HTTP 403 Forbidden issue. The root cause of the issue is, in my code has access to the file system on the server,to which the logged in users do not have the access while Editing the web part.
I have used RunWithElevatedPrivileges but only for getting the site info and updating the list. The code reading the config file and logging into the log file does not covered under ElevatedPrivileges.
I included them with Elevated Privileges, the users are able to Edit the web pat. We can also resolve this issue by giving ther read, write permissions to that particular files to 'SERVER\USERS'

Resources