Git Product home page Git Product logo

learn.forge.viewmodels's Introduction

learn.forge.viewmodels's People

Contributors

augustogoncalves avatar dukedhx avatar joaomartins-callmejohn avatar petrbroz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

learn.forge.viewmodels's Issues

ASP.NET Core sample - HTTPS issues

If it's not necessary, I'd suggest to remove the HTTPS redirection from the ASP.NET Core sample:

https://github.com/Autodesk-Forge/learn.forge.viewmodels/blob/netcore/Startup.cs#L28

It can cause issues with certificates. For example, on my macOS the server app would always redirect me from localhost:5000 (HTTP) to localhost:5001 (HTTPS) but the certificate wasn't working and had to be worked around: https://www.c-sharpcorner.com/article/how-to-enforce-htts-development-certificate-for-asp-net-core/.

And after resolving the certificate problem, there are CORS issues as well:

Access to XMLHttpRequest at 'https://localhost:5001/api/forge/oss/buckets?id=%23' (redirected from 'http://localhost:5000/api/forge/oss/buckets?id=%23') from origin 'http://localhost:5000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

3D model not loading on the viewer

I used visual studio 2015 and I am receiving the error:

Failed to load resource: the server responded with a status of 404 (Not Found) ForgeViewer.js:20 Uncaught TypeError: Cannot read property 'search' of null at onDocumentLoadSuccess (ForgeViewer.js:20) at b.ViewingApplication.<anonymous> (viewer3D.js:151999) at f (viewer3D.js:139004) at XMLHttpRequest.m (viewer3D.js:74916)
on the web console. How do I resole the error so that I can see my 3d model on the viewe

Issue loading the buckets

I am using Node v10.17.0. When I first load the page "localhost:3000", I see continuously "Loading ..." in the tree (see attached screenshot) without being able to add new buckets.
ForgeIssue

In the terminal, I see the followings errors/warnings:
(node:14964) UnhandledPromiseRejectionWarning: Error: connect ECONNREFUSED 3.233.190.64:443
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)
(node:14964) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without
a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:14964) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Could it be related to node version? I did npm install.

Thanks

404 error

Hi

Did everything in the tutorial. Everything else gave an error.

`<?php
namespace Autodesk\ForgeServices;
use Dotenv\Dotenv;

class ForgeConfig{
private static $forge_id = null;
private static $forge_secret = null;
public static $prepend_bucketkey = true; //toggle client ID prefix to avoid conflict with existing buckets

public static function getForgeID(){
  $forge_id = '';
  if(!array_key_exists('FORGE_CLIENT_ID', $_ENV)){
    // load the environment variable from .env into your application
    $dotenv = Dotenv::create(__DIR__);
    $dotenv->load();
  }
  $forge_id = $_ENV['FORGE_CLIENT_ID'];
  return $forge_id;
}

public static function getForgeSecret(){
  $forge_secret = '';
  if(!array_key_exists('FORGE_CLIENT_SECRET', $_ENV)){
    // load the environment variable from .env into your application
    $dotenv = Dotenv::create(__DIR__);
    $dotenv->load();
  }
  $forge_secret = $_ENV['FORGE_CLIENT_SECRET'];
  return $forge_secret;
}

// Required scopes for your application on server-side
public static function getScopeInternal(){
  return ['bucket:create', 'bucket:read', 'data:read', 'data:create', 'data:write'];
}

// Required scope of the token sent to the client
public static function getScopePublic(){
  // Will update the scope to viewables:read when #13 of autodesk/forge-client is fixed
  return ['data:read'];
}

}
`
Dotenv:create like suggested in the tutorial here on GitHub gives 404 error localhost page can't be found. Is there something else here that we are missing?

Error 404 on localhost:3000

Hi,
I'm trying to make this tutorial (php) and i'm getting blank page with HTTP Error 404, any idea ?
nothing in debugger, nothing enywhere else...
When calling this uri http://localhost:3000/api/forge/oss/buckets i get this error

( ! ) Notice: Undefined index: id in D:\ArMediaCG\www\...\AutoCad API Extention\apps\Forge\first_tutorial\server\oss.php on line 54
Call Stack
#	Time	Memory	Function	Location
1	0.8060	405488	{main}( )	...\index.php:0
2	0.8591	519816	Klein\Klein->dispatch( )	...\index.php:50
3	0.8661	552248	Klein\Klein->handleRouteCallback( )	...\Klein.php:572
4	0.8661	552248	call_user_func:{D:\ArMediaCG\www\...\AutoCad API Extention\apps\Forge\first_tutorial\vendor\klein\klein\src\Klein\Klein.php:859} ( )	...\Klein.php:859
5	0.8661	552248	{closure:D:\ArMediaCG\www\...\AutoCad API Extention\apps\Forge\first_tutorial\index.php:27-30}( )	...\Klein.php:859
6	0.8661	552288	Autodesk\ForgeServices\DataManagement->getBucketsAndObjects( )	...\index.php:29

( ! ) Fatal error: Uncaught InvalidArgumentException: Missing the required parameter $bucket_key when calling getObjects in D:\ArMediaCG\www\...\AutoCad API Extention\apps\Forge\first_tutorial\vendor\klein\klein\src\Klein\Klein.php on line 925
( ! ) Klein\Exceptions\UnhandledException: Missing the required parameter $bucket_key when calling getObjects in D:\ArMediaCG\www\...\AutoCad API Extention\apps\Forge\first_tutorial\vendor\klein\klein\src\Klein\Klein.php on line 925
Call Stack
#	Time	Memory	Function	Location
1	0.8060	405488	{main}( )	...\index.php:0
2	0.8591	519816	Klein\Klein->dispatch( )	...\index.php:50
3	0.8751	667432	Klein\Klein->error( )	...\Klein.php:629

Error in Gettoken

I can log in using the 3 legged authentication but once I accept the permissions then I get this error.

Error calling Gettoken: The underlying connection was closed: An unexpected error occurred on a send.

Issues

Can't clone using the link. When I clone using the url there are a lot of files missing.

Error while creating a new bucket

while creating a new bucket like "zaferbucket" i'm getting an internal server error (500)

ExceptionMessage: "Error calling CreateBucket: {"reason":"Valid field 'bucketKey' must be of the form [-_.a-z0-9]{3,128}"}"

error

Only 10 objects listed per bucket

I've noticed this in the nodejs branch, but other branches/languages are probably affected, too. When getting objects of a specific bucket, the forge-apis only return 10 items by default. The code should either set a higher limit, or better, collect the objects in a loop.

Buckets cannot be created

Annotation 2020-05-14 160629

When I attempt to open the web application, the buckets and objects tab loads forever. In addition, it will not allow me to create a bucket or upload a file for the viewer. I have tried it using PHP, node.js, and Java. Please help, thank you

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.