GithubHelp home page GithubHelp logo

Comments (9)

ruixiwu avatar ruixiwu commented on September 24, 2024

webpack: Compiled successfully.
Socket connected: ZAiZYl208rPujSDFAAAA
Socket disconnected: ZAiZYl208rPujSDFAAAA
Socket connected: -d6MitsZ-HEW5bAsAAAB
Socket disconnected: -d6MitsZ-HEW5bAsAAAB
Socket connected: aj1bEv6k_aZmN0ZNAAAC
Cleaning Dir: D:_h5_work\forge-rcdb.nodejs0927\TMP
Cleaning Dir: D:_h5_work\forge-rcdb.nodejs0927\TMP
Cleaning Dir: D:_h5_work\forge-rcdb.nodejs0927\TMP
{ Error: EPERM: operation not permitted, stat 'D:_h5_work\forge-rcdb.nodejs0927\TMP\75b528969c33f0bd3889cefe6ef1cc08.rvt'
at Error (native)
errno: -4048,
code: 'EPERM',
syscall: 'stat',
path: 'D:\_h5_work\forge-rcdb.nodejs0927\TMP\75b528969c33f0bd3889cefe6ef1cc08.rvt' }
Socket disconnected: aj1bEv6k_aZmN0ZNAAAC
Socket connected: 68_b0NpPQTi-WCUiAAAD
Cleaning Dir: D:_h5_work\forge-rcdb.nodejs0927\TMP
{ Error: EPERM: operation not permitted, stat 'D:_h5_work\forge-rcdb.nodejs0927\TMP\75b528969c33f0bd3889cefe6ef1cc08.rvt'
at Error (native)
errno: -4048,
code: 'EPERM',
syscall: 'stat',
path: 'D:\_h5_work\forge-rcdb.nodejs0927\TMP\75b528969c33f0bd3889cefe6ef1cc08.rvt' }
Socket disconnected: 68_b0NpPQTi-WCUiAAAD
Socket connected: 1sO-jHTiZlJFebg4AAAE
Socket disconnected: 1sO-jHTiZlJFebg4AAAE
Socket connected: 2j9iYc0pKlHSBgfGAAAF
Cleaning Dir: D:_h5_work\forge-rcdb.nodejs0927\TMP
{ Error: EPERM: operation not permitted, stat 'D:_h5_work\forge-rcdb.nodejs0927\TMP\75b528969c33f0bd3889cefe6ef1cc08.rvt'
at Error (native)
errno: -4048,
code: 'EPERM',
syscall: 'stat',
path: 'D:\_h5_work\forge-rcdb.nodejs0927\TMP\75b528969c33f0bd3889cefe6ef1cc08.rvt' }
Socket disconnected: 2j9iYc0pKlHSBgfGAAAF

from forge-rcdb.nodejs.

ruixiwu avatar ruixiwu commented on September 24, 2024

did any one has suffered the same issue?

from forge-rcdb.nodejs.

leefsmp avatar leefsmp commented on September 24, 2024

My first guess is that you didn't change the bucketKey in the config, so your server is trying to upload to a Forge bucket that I have created under my account. Make sure you define a bucketKey that is unique. Keep in mind bucketKeys have to be unique service-wide, so don't use a basic name such as bucket1, also no special characters. You can append your clientId to the bucketKey for example.

When uploading a file, first you need to upload from client to server, then from server to Forge (in order to hide the write-enabled token from the browser). 50% of the upload is the first step, 50% is the second, that's the logic I implemented in that sample. That would explain why you can only pass the first 50%.

from forge-rcdb.nodejs.

ruixiwu avatar ruixiwu commented on September 24, 2024

hello, leefsmp,
I try to change the bucketID alternatively, but failed
should I apply an OSS something first to get my bucket space and then to upload the rvt file there? but I don't know where to apply the OSS?

2017-10-01_16-57-16

Ricky

from forge-rcdb.nodejs.

ruixiwu avatar ruixiwu commented on September 24, 2024

hello, leefsmp,
I did created a new bucket successfully, and make a new bucketkey for gallery:
2017-10-01_21-48-08

then I "npm start " again with that new bucketkey
it seems the system upload the file to oss successfully, but translated the model failed and keeping at 0% all the time:
2017-10-01_21-51-08

My question:
what's the bucket for the following meta script in config file? do I need to create another bucket for the meta?

meta: {
bucket: {
bucketKey: 'ricky-metabucket',
policyKey: 'Persistent'
}
},

from forge-rcdb.nodejs.

ruixiwu avatar ruixiwu commented on September 24, 2024

hello, leefsmp,

the system upload and translate the rvt file successfully,
the original is revit 2012 version, it seems too old; I opened the rvt file with revit2018 and save it and then upload it again.

2017-10-01_22-42-18

but now I can't download the svf file, it's half hour past, but no any response still!!!

and the node.js server log report: 'x-ads-troubleshooting': 'Couldn't download object: The specified key does not exist.',

here is the node.js log:

href: 'https://developer.api.autodesk.com/derivativeservice/v2/derivatives/urn:adsk.viewing:fs.file:dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6cmlja3ktZ2FsbGVyeWJ1Y2tldC41Lzg3MDQtZmY4NS04ZjgxLnJ2dA/output/Resource/三维视图/%7B3D%7D%205395/%7B3D%7D.svf',
req:
ClientRequest {
domain: null,
_events: [Object],
_eventsCount: 5,
_maxListeners: undefined,
output: [],
outputEncodings: [],
outputCallbacks: [],
outputSize: 0,
writable: true,
_last: true,
upgrading: false,
chunkedEncoding: false,
shouldKeepAlive: false,
useChunkedEncodingByDefault: false,
sendDate: false,
_removedHeader: {},
_contentLength: 0,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
socket: [Object],
connection: [Object],
_header: 'GET /derivativeservice/v2/derivatives/urn:adsk.viewing:fs.file:dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6cmlja3ktZ2FsbGVyeWJ1Y2tldC41Lzg3MDQtZmY4NS04ZjgxLnJ2dA/output/Resource/三维视图/%7B3D%7D%20539
5/%7B3D%7D.svf HTTP/1.1\r\nAuthorization: Bearer eyJhbGciOiJIUzI1NiIsImtpZCI6Imp3dF9zeW1tZXRyaWNfa2V5In0.eyJjbGllbnRfaWQiOiJ6UVN4NkVBNG85ZWlFVERGakNVdFRzWmk3YW5mbmVyUCIsImV4cCI6MTUwNjg3MjQ2Niwic2NvcGUiOlsiZGF0YTpyZWFkIiwiZGF0YTp3cml0ZSIsImRhdGE6Y3JlYXRlIiwiYnVja2V0OnJlYWQiLCJidWNrZXQ6Y3JlYXRlIl0sImF1ZCI6Imh0dHBzOi8vYXV0b2Rlc2suY29tL2F1ZC9qd3RleHA2MCIsImp0aSI6Im9sS0xnMGRIMjRSN3VWOTljNVFSb1ZjYU5YR1ZybFZPQlZKR3B3OFR3UHE1WTMxSmN5T2htMVp1T1lLM3dBT2IifQ.TTiYMKWmbrLAprmLmxSnBOnlgVjzBgCa9gCRXby9gSs\r\nAccept-Encoding: gzip, deflate\r\nhost: developer.api.autodesk.com\r\nConnection: close\r\n\r\n',
_headers: [Object],
_headerNames: [Object],
_onPendingData: null,
agent: [Object],
socketPath: undefined,
timeout: undefined,
method: 'GET',
path: '/derivativeservice/v2/derivatives/urn:adsk.viewing:fs.file:dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6cmlja3ktZ2FsbGVyeWJ1Y2tldC41Lzg3MDQtZmY4NS04ZjgxLnJ2dA/output/Resource/三维视图/%7B3D%7D%205395/%7B3D
%7D.svf',
_ended: true,
parser: null,
res: [Circular] },
ntick: true,
response: [Circular],
originalHost: 'developer.api.autodesk.com',
originalHostHeaderName: 'host',
responseContent: [Circular],
_ended: true,
_callbackCalled: true },
toJSON: [Function: responseToJSON],
caseless:
Caseless {
dict:
{ 'access-control-allow-credentials': 'true',
'access-control-allow-origin': '*',
'content-type': 'text/plain; charset=utf-8',
date: 'Sun, 01 Oct 2017 15:25:39 GMT',
server: 'Apigee Router',
'x-ads-app-identifier': 'platform-viewing-2017.07.02.32.cf55416-production',
'x-ads-duration': '713 ms',
'x-ads-exception-id': 'b0853bd6-45ba-4d35-8d73-7be98230f05a',
'x-ads-startup-time': 'Mon Sep 18 02:32:08 UTC 2017',
'x-ads-troubleshooting': 'Couldn't download object: The specified key does not exist.',
'content-length': '0',
connection: 'Close' } },
read: [Function],
body: }

from forge-rcdb.nodejs.

leefsmp avatar leefsmp commented on September 24, 2024

Did you try without chinese characters in the filename?

from forge-rcdb.nodejs.

ruixiwu avatar ruixiwu commented on September 24, 2024

hello, leefsmp,
I have uploaded the new renamed file without chinese characters.
it acts the same as before.

and I tested the behavior in "https://forge-rcdb.autodesk.io/gallery" with the same file. it works well.

so it's strange.

from forge-rcdb.nodejs.

ruixiwu avatar ruixiwu commented on September 24, 2024

by the way, there is nothing to show in the configurator page and main page.
I am wondering how to config those items like ""https://forge-rcdb.autodesk.io" ?
is that normal behavior by default at the beginning?

2017-10-02_13-19-08
2017-10-02_13-18-56

from forge-rcdb.nodejs.

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.