Open johnfelipe opened 6 years ago
Bro i do this:
export NODE_ENV=development
echo $NODE_ENV
sudo nano /home/felipe/aec-visual-reports/config/development.config.js
##
const PORT= 3020
##
sudo nano /home/felipe/aec-visual-reports/src/server/index.js
##
process.env.PORT || config.server_port || 3020, () => {
##
cp forge_auth.sh.example forge_auth.sh
sudo nano /home/felipe/aec-visual-reports/forge_auth.sh
##
# DEVELOPMENT SETUP
export FORGE_DEV_CLIENT_ID='cccc'
export FORGE_DEV_CLIENT_SECRET='vvvvv'
export NODE_ENV=development
export PORT=3020
##
npm start
and is working now, but show this
Unhandled Rejection at: Promise Promise {
<rejected> { developerMessage: 'The client_id specified does not have access to the api product',
userMessage: '',
errorCode: 'AUTH-001',
'more info': 'http://developer.api.autodesk.com/documentation/v1/errors/AUTH-001' } } reason: { developerMessage: 'The client_id specified does not have access to the api product',
userMessage: '',
errorCode: 'AUTH-001',
'more info': 'http://developer.api.autodesk.com/documentation/v1/errors/AUTH-001' }
How solve it?
Hey John,
I just pushed an update to the version of the Viewer this sample is using. Now in regard to the ports you may want to check the Boiler plate we have for React with this same setup, once you make that work It will be ideal to move into this one to use the Visual Reports extension.
I would make sure to check the URN's you are trying to load are connected to your own token. https://github.com/Autodesk-Forge/aec-visual-reports/blob/master/src/client/routes/Home/components/HomeView.js#L15
This URN's need to be swap with your own ones and use a valid token with it. Also I would say, check your callback URL.
about forge-react-boiler.nodejs, is completed: http://200.122.209.133:3010/, but my question is in here, in this repo, why show me this:
Unhandled Rejection at: Promise Promise {
<rejected> { developerMessage: 'The client_id specified does not have access to the api product',
userMessage: '',
errorCode: 'AUTH-001',
'more info': 'http://developer.api.autodesk.com/documentation/v1/errors/AUTH-001' } } reason: { developerMessage: 'The client_id specified does not have access to the api product',
userMessage: '',
errorCode: 'AUTH-001',
'more info': 'http://developer.api.autodesk.com/documentation/v1/errors/AUTH-001' }
i change ID and KEYSECRET with
Now is not show that error
But review with yourself
You are still trying to load my URN's. It will not work since your token does not have access to these URN's
You need to translate your models and swap the URN's in the location I mentioned before.
Can u share me that rvt i translate with my ID?
I don't have this man, Sorry.
Is working now, but 2D is not showing, how fix it?
Your model only contains 1 3D view. The viewer will not show a non existing 2D view. You can check what you have available in the ViewerView.js line 99 which will assign the value of what is available per model to items.
and show me this error
How solved?