I'm trying to run examples-browser/staging/stage-scene-structure in local server, i've created publishableApiKey and added it in the io3d.config. On selection of a area console displays following error
HomeStaging error: You are not authorized to access this method.
Please use your API key to use this method or get a free API key at
3d.io
How to resole this?
Note: I'm using free quotas
Thanks
I'm sorry to hear you're having issues. The first thing that comes to mind is that the allowed domains associated with your publishable API key are incorrect.
When setting the domains you have to set them without quotes, i.e. only the domains separated by spaces:
localhost *.3d.io mypage.com
The solution for now while the leading/trailing quotes are not ignored by the library is to generate a new API key with the correct list of domains.
When it comes to running the application locally, all you need to do is to follow the installation guidelines here
git clone https://github.com/archilogic-com/3dio-js.git ; cd ./3dio-js
npm install rollup -g ; npm install lite-server -g
npm install
Now you can edit the index.html file, adding your publishable API key to config. Then you can go back to terminal and start the server:
npm start
This will automatically open the examples in the browser:
where you can click through to the example you'd like to test out:
Related
The team I am working on we are developing React applications and we are using yarn for pulling dependencies. We are using a private registry from where we are pulling npm dependencies and we are also using a private artifactory via jFrog to pull and publish common components like buttons, plots etc.
So far with the private registry we do not experience any problem while we were working with yarn. We used npmrc file locally on our repository to setup the registry from where we are pulling dependencies.
Now we have to add a scoped registry pointing to our private artifactory. So my npmrc file looks like that:
registry=http://private-registry/npmjs-group/
loglevel=http
strict-ssl=false
#scoped-name:registry=https://private.artifactory.com/artifactory/api/npm/shared-components
So, when I am using npm install the dependencies coming from artifactory are fetched behind http http://private.artifactory.com/artifactory/api/npm/shared-components
However, when I am using yarn install with the previous npmrc I get the following:
info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "http://private.artifactory.com/artifactory/api/npm/shared-components/#scopred-name/icons-0.1.0.tgz: connect ETIMEDOUT 146.106.239.15:80".
I tried to set up proxy,https-proxy config setting on npmrc but I could not make it to work. I did something like that:
proxy=http://private.artifactory.com/artifactory/api/npm/shared-components
https-proxy=http://private.artifactory.com/artifactory/api/npm/shared-components
I am not sure if those settings are appropriate. Or is another issue.
I tried the same approach with the same failing results by using yarnrc.
In addition, I saw this open issue on jFrog https://www.jfrog.com/jira/browse/RTFACT-12703.
It seems that jFrog is not supporting YARN is it true?
I would be really appreciated if someone from the open community can give some light here.
I've been trying to install and setup the ASK CLI for a days now. I've followed the setup instructions and was able to install it. Whenever I try to run the ask init command and choose the "No. Skip AWS credentials association step.", a browser opens up and asks me to login to my developer account. I enter my credentials and just get redirected to a page that says unable to connect (Here's the link: http://127.0.0.1:9090/cb?code=ANjcJMpKRGqoqrSbiHdX&scope=alexa%3A%3Aask%3Askills%3Areadwrite+alexa%3A%3Aask%3Amodels%3Areadwrite+alexa%3A%3Aask%3Askills%3Atest+alexa%3A%3Aask%3Acatalogs%3Aread+alexa%3A%3Aask%3Acatalogs%3Areadwrite&state=Ask-SkillModel-ReadWrite).
I also tried using the ask init --no-browser command. I paste the generated url to a browser (I've tried Google Chrome, IE, Edge and Firefox and so far Firefox and IE works well). It gives me an authentication code but when I go back to the terminal, it's just frozen. I can't paste anything to it. I always get stuck at this point.
The reason I'm choosing "No. Skip AWS credentials association step." is because my skill endpoint is hosted as a web service in Azure and not using AWS Lambda. Am I missing anything? There were no errors in the installation process. I installed nodejs and git correctly. When I do ask --version in the terminal, the result is 1.4.7.
Does the ASK CLI not allow the skipping of the AWS profile setup?
A few details to make it clearer:
OS: Windows 10
Node JS: v10.13.0
NPM: 6.4.1
Git: git version 2.19.1.windows.1
ASK: 1.4.7
(I also found someone who experienced the same problem: ASK CLI INIT not working)
I' trying to deploy to Github Pages using angular-cli (1.0.0-beta.11-webpack.8)
It worked fine once (when it just asked me for my user and pass)
Now, on a different repo, it wants a token:
In order to deploy this project via GitHub Pages, we must first create a repository for it.
It's safer to use a token than to use a password so you will need to create one
Go to the following page and click "Generate new token".
https://github.com/settings/tokens
When I generate a token and enter my username it always gives me this error:
Failed to create GitHub repo. Error: 422 Unprocessable Entity
Anyone got a solution for this?
Log into Github and check under Repositories to see if it was created (https://github.com/settings/repositories). Follow the instructions in the Readme.md file then try to deploy again.
I had the same issue.
You encounter this problem if you already have a repo on your github account with the same name of your project you are trying to deploy. I got around this problem by first deleting my repo and then executing the deploy command: ng github-pages:deploy
I'm guessing this is because the angular-cli always tries to create the repo first and if it fails (because it already exists), then it does not progress.
This recreates your repo with an extra branch which contains the deployed app.
I am presently reading Manning's AngularJS in Action by Lukas Ruebbelke
The introductory part suggests,
Because you’re pulling files from a CDN, you’ll need to run
Angello Lite(the application name) from a web server. There are a few ways to do this, but one of the easiest ways is to use the npm package serve.
The steps for installing Angello Lite are as follows:
■ Install Node.js. You can find all of the information to do that at http://
nodejs.org/.
■ Install the serve package by running npm install -g serve from the command
line.
■ Download Angello Lite from GitHub, using the URL given above, and place it
on your local machine in a directory named angello-lite.
■ Navigate to the angello-lite directory from the command line and run serve.
■ Go to http://localhost:3000 in your browser to see the application.
Does learning Angular JS require previous exposure to node and git?
If I have Apache Tomcat already configured on my local m/c, what is the procedure to start with it?
Furthermore, just to keep in sync with the author, I installed git and then cloned a dir onto my local m/c from github.
Then i install node.js and Install the serve package by runningnpm install -g servefrom the command line.
Unfortunately when i navigate to the angello-lite directory from the command line and run serve, it shows me
where angello-lite is the repository where the application resides?
Any suggestions on how to configure successfully?
I have no idea regarding node.js and git. Do i really need to learn
these to begin with AngularJS then.
No, that's not a requirement. You don't even need a web server. You can have your static HTML files locally or use some online service like plnkr. Obviously if you need to work with dynamic data then you will need a web server. At some point you might want to start making AJAX calls in order to fetch some dynamic data from your server backend.
If I have Apache Tomcat already configured on my local m/c, what is
the procedure to start with it?
Just add an HTML page to the root of your website, open your favorite browser and invoke this page.
You don't need those tools to learn Angular - you can download latest package from the AngularJS website (both for development and for production).
Node.js and Git may be necessary to pull and build packages from the NPM, run tasks and many more great features, but just to learn Angular all you need is its code.
I am preparing private package repository using satis. We are using git for versioning our source code. When I use credentials in repository address everything works well, packages.json is where it should be with proper content. But when I remove these credentials and try to build packages.json via
php bin/satis build config.json web/
I get
fatal: Authentication failed
which is understandable. I want to ask is there any other to authenticate to git repo from satis without keeping plain credentails in packages.json? I only add that I can't access repositories via ssh.
Problem solved. I have to use .netrc file and store my credentials there. Everything works like music now.