Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Titaniumifier –– library for Titanium #2

Closed
AppWerft opened this issue Nov 28, 2015 · 26 comments
Closed

Titaniumifier –– library for Titanium #2

AppWerft opened this issue Nov 28, 2015 · 26 comments

Comments

@AppWerft
Copy link

Hi,
I tried to build ti.Module by titaniumifier and cloned this branch to my machine.
In the root I started:

titaniumifier --out dist

and got:

/usr/local/lib/node_modules/titaniumifier/node_modules/bluebird/js/main/promise.js:677
            throw e;
                  ^
Error: Cannot find module 'jahcode' from '/Users/fuerst/Documents/APPC_WORKSPACE/TiBaqend/lib'

Its right there is no jahcode in the repo. How can I fix it?

@malte-lau
Copy link
Contributor

Hi Rainer,
jahcode is part of this repository and it is probably just the first of a list of missing dependencies. We don’t have much experience with Titanium and don’t know where and how you need to register the dependencies in titaniumifier. (it runs only on node 0.11 👎 )
We are trying to set it up and having a look in the wiki.
cheers

@AppWerft
Copy link
Author

Now I have rebuilt with repo from juni. https://github.com/AppWerft/TiBaqend

@fbuecklers
Copy link
Member

Hi,
The baqend sdk of juni will not work properly with the current version of baqend, since there was some braking changes under the hood. I think you forgot to npm install the dependencies after cloning this repo?

just type npm install after you have cloned this repo and the titaniumifier should succeed. :-)

@AppWerft
Copy link
Author

I have installed all depencies by npm. But I have still not tested in a
project. The new module is larger: old: 500kb new 0.9 Mb

Am 29/11/15 um 14:18 schrieb Florian Bücklers:

Hi,
The baqend sdk of juni will not work properly with the current version
of baqend, since there was some braking changes under the hood. I
think you forgot to npm install the dependencies after cloning this repo?

just type |npm install| after you have cloned this repo and the
titaniumifier should succeed. :-)


Reply to this email directly or view it on GitHub
#2 (comment).

Dipl.-Ing. Rainer Schleevoigt
Certified TYPO3 Integrator
Certified Titanium App Developer

Novalisweg 10

22303 Hamburg
℡ 040 60812460
|Ust-ID: DE239491976|||||||

@fbuecklers
Copy link
Member

Its true that the newer version is a little bit larger, but the main reason of the very large size is, that the titaniumfier shims the entiered node 0.10 enviroment which we do not need at all. browserify have a option to prevent this, but i do not know how you can prevent this in titaniumfier.

@AppWerft
Copy link
Author

Yes I know, it is possible the useless parts.

Now comes:

[ERROR] : TiExceptionHandler: (main) [1573,1573] ----- Titanium
Javascript Runtime Error -----
[ERROR] : TiExceptionHandler: (main) [0,1573] - In tibaqend.js:30315,9
[ERROR] : TiExceptionHandler: (main) [0,1573] - Message: Uncaught
Error: secure random number generation not supported by this browser
[ERROR] : TiExceptionHandler: use chrome, FireFox or Internet Explorer 11
[ERROR] : TiExceptionHandler: (main) [0,1573] - Source: throw new Error(

I think I need an other method to do this.

Am 29/11/15 um 14:25 schrieb Florian Bücklers:

Its true that the newer version is a little bit larger, but the main
reason of the very large size is, that the titaniumfier shims the
entiered node 0.10 enviroment which we do not need at all. browserify
have a option to prevent this, but i do not know how you can prevent
this in titaniumfier.


Reply to this email directly or view it on GitHub
#2 (comment).

Dipl.-Ing. Rainer Schleevoigt
Certified TYPO3 Integrator
Certified Titanium App Developer

Novalisweg 10

22303 Hamburg
℡ 040 60812460
|Ust-ID: DE239491976|||||||

@fbuecklers
Copy link
Member

Hm, i'am not sure why this error raise. Our sdk runs also in ie9 and ie10 and in safari as well...

@fbuecklers
Copy link
Member

It seams that packaging is not really required anymore for Appcelerator. Look at the documentation of the common Module usage of Appcelerator: https://wiki.appcelerator.org/display/guides2/CommonJS+Modules+in+Titanium
You can use the browser ready library provided in dist folder. Maybe that helps.

@AppWerft
Copy link
Author

In most cases nodeJS uses native components like net or http. In your
case the SDK uses code for generating uniqueID.

I will see.

Am 29/11/15 um 15:35 schrieb Florian Bücklers:

It seams that packaging is not really required anymore for
Appcelerator. Look at the documentation of the common Module usage of
Appcelerator:
https://wiki.appcelerator.org/display/guides2/CommonJS+Modules+in+Titanium

You can use the browser ready library provided in dist folder. Maybe
that helps.


Reply to this email directly or view it on GitHub
#2 (comment).

Dipl.-Ing. Rainer Schleevoigt
Certified TYPO3 Integrator
Certified Titanium App Developer

Novalisweg 10

22303 Hamburg
℡ 040 60812460
|Ust-ID: DE239491976|||||||

@AppWerft
Copy link
Author

The issue is happening in node-uuid. You are using getRandomValues().
Reason? I can use a function from Titanium namespace.

Cheers!

Am 29/11/15 um 15:35 schrieb Florian Bücklers:

It seams that packaging is not really required anymore for
Appcelerator. Look at the documentation of the common Module usage of
Appcelerator:
https://wiki.appcelerator.org/display/guides2/CommonJS+Modules+in+Titanium

You can use the browser ready library provided in dist folder. Maybe
that helps.


Reply to this email directly or view it on GitHub
#2 (comment).

Dipl.-Ing. Rainer Schleevoigt
Certified TYPO3 Integrator
Certified Titanium App Developer

Novalisweg 10

22303 Hamburg
℡ 040 60812460
|Ust-ID: DE239491976|||||||

@AppWerft
Copy link
Author

My plan: replace

lib/util/index.js:exports.uuid = require('node-uuid').v4;

with require('tit-uuid').

In this (my) module I'am using a native functioj to get the deviceID.

Do you see more problems with Titanium?

Am 29/11/15 um 15:35 schrieb Florian Bücklers:

It seams that packaging is not really required anymore for
Appcelerator. Look at the documentation of the common Module usage of
Appcelerator:
https://wiki.appcelerator.org/display/guides2/CommonJS+Modules+in+Titanium

You can use the browser ready library provided in dist folder. Maybe
that helps.


Reply to this email directly or view it on GitHub
#2 (comment).

Dipl.-Ing. Rainer Schleevoigt
Certified TYPO3 Integrator
Certified Titanium App Developer

Novalisweg 10

22303 Hamburg
℡ 040 60812460
|Ust-ID: DE239491976|||||||

@fbuecklers
Copy link
Member

Maybe you will be fine with that, we will see. The SDK itself has not many external dependencies.

@AppWerft
Copy link
Author

Currently I substitude
//exports.uuid = require('./node-uuid').v4;
exports.uuid = Ti.Platform.getId();

in lib/util/index.js

Am 29/11/15 um 16:56 schrieb Florian Bücklers:

Maybe you will be fine with that, we will see. The SDK itself has not
many external dependencies.


Reply to this email directly or view it on GitHub
#2 (comment).

Dipl.-Ing. Rainer Schleevoigt
Certified TYPO3 Integrator
Certified Titanium App Developer

Novalisweg 10

22303 Hamburg
℡ 040 60812460
|Ust-ID: DE239491976|||||||

@AppWerft
Copy link
Author

Hi Florian:

var DB = require('tibaqend');
DB.connect('http://MYSUBDOMAIN.baqend.com/');
// waits while the SDK connects to your Baqend
DB.ready(function() {
console.log('Info: Baqend connected');
DB.User.find();
});

ready don't come in …

How can I debug why?

Am 29/11/15 um 16:56 schrieb Florian Bücklers:

Maybe you will be fine with that, we will see. The SDK itself has not
many external dependencies.


Reply to this email directly or view it on GitHub
#2 (comment).

Dipl.-Ing. Rainer Schleevoigt
Certified TYPO3 Integrator
Certified Titanium App Developer

Novalisweg 10

22303 Hamburg
℡ 040 60812460
|Ust-ID: DE239491976|||||||

@fbuecklers
Copy link
Member

Ti.Platform.getId() is not really a replacement for the uuid generator. For each new object which you are creating we will generate a new uuid.

You can use a second callback or the promise style notation to catch all errors.

var DB = require('tibaqend');
     DB.connect('http://MYSUBDOMAIN.baqend.com/');
     // waits while the SDK connects to your Baqend
     DB.ready(function() {
         console.log('Info: Baqend connected');
         DB.User.find();
     }).catch(function(e) {
        console.error(e);
     });

@AppWerft
Copy link
Author

Am 29/11/15 um 17:31 schrieb Florian Bücklers:

|Ti.Platform.getId()| is not really a replacement for the uuid
generator. For each new object which you are creating will will
generate a new uuid.

Ok, I can create a uuid for every object. (Bad) solution:
Ti.Platform.id + Math.random() or better logic.

You can use a second callback or the promise style notation to catch
all errors.

|var DB = require('tibaqend');
DB.connect('http://MYSUBDOMAIN.baqend.com/'); // waits while the SDK
connects to your Baqend DB.ready(function() { console.log('Info:
Baqend connected'); DB.User.find(); }).catch(function(e) {
console.error(e); }); |


Reply to this email directly or view it on GitHub
#2 (comment).

Thanks. with xhr.onload I see right response like:
[INFO] :
[{"class":"/db/Todo","superClass":"/db/Object","acl":{"schemaAdd":{"/db/Role/1":"allow"},"schemaReplace":{"/db/Role/1":"allow"},"schemaSubclass":{"/db/Role/1":"allow"}},"fields":{"listId":{"name":"listId","type":"/db/String","order":0},"name":{"name":"name","type":"/db/String","order":1},"activities":{"name":"activities","type":"/db/collection.List[/db/Activity]","order":2},"active":{"name":"active","type":"/db/Boolean","order":3},"done":{"name":"done","type":"/db/Boolean","order":4}}},{"class":"/db/User","superClass":"/db/Object","acl":{"schemaAdd":{"/db/Role/1":"allow"},"schemaReplace":{"/db/Role/1":"allow"},"schemaSubclass":{"/db/Role/1":"allow"}},"fields":{"username":{"name":"username","type":"/db/String","order":0}}},{"class":"/db/Device","superClass":"/db/Object","acl":{"load":{"/db/Role/2":"allow"},"insert":{"/db/Role/1":"allow"},"update":{"/db/Role/1":"allow"},"delete":{"/db/Role/1":"allow"},"query":{"/db/Role/2":"allow"},"schemaAdd":{"/db/Role/1":"allow"},"schemaReplace":{"/db/Role/1":"allow"},"schemaSubclass":{"/db/Role/1":"allow"}},"fields":{"deviceOs":{"name":"deviceOs","type":"/db/String","order":0}}},{"class":"/db/Activity","acl":{"schemaAdd":{"/db/Role/1":"allow"},"schemaReplace":{"/db/Role/1":"allow"}},"embedded":true,"fields":{"start":{"name":"start","type":"/db/DateTime","order":0},"end":{"name":"end","type":"/db/DateTime","order":1}}},{"class":"/db/Role","superClass":"/db/Object","acl":{"schemaAdd":{"/db/Role/1":"allow"},"schemaReplace":{"/db/Role/1":"allow"},"schemaSubclass":{"/db/Role/1":"allow"}},"fields":{"name":{"name":"name","type":"/db/String","order":0},"users":{"name":"users","type":"/db/collection.Set[/db/User]","order":1}}},{"class":"/db/Object","acl":{"schemaAdd":{"/db/Role/1":"allow"},"schemaReplace":{"/db/Role/1":"allow"},"schemaSubclass":{"/db/Role/1":"allow"}},"fields":{"id":{"name":"id","type":"/db/String","order":0},"version":{"name":"version","type":"/db/Integer","order":1},"acl":{"name":"acl","type":"/db/JsonObject","order":2}}}]

I see a little probelm: On iOS we have no methode
getAllResponseHeaders() for XHR. There is only for ANdroid. What is the
purpose for it?

Dipl.-Ing. Rainer Schleevoigt
Certified TYPO3 Integrator
Certified Titanium App Developer

Novalisweg 10

22303 Hamburg
℡ 040 60812460
|Ust-ID: DE239491976|||||||

@AppWerft
Copy link
Author

this runs awesome: exports.uuid = Ti.Platform.createUUID();

Am 29/11/15 um 17:31 schrieb Florian Bücklers:

|.catch(function(e) { console.error(e); });|

Dipl.-Ing. Rainer Schleevoigt
Certified TYPO3 Integrator
Certified Titanium App Developer

Novalisweg 10

22303 Hamburg
℡ 040 60812460
|Ust-ID: DE239491976|||||||

@AppWerft
Copy link
Author

Thanks for your hint with the catch node:
I can see

ERROR: {"message":"Handling the Response for GET /schema:
undefined","name":"CommunicationError","cause":[{"class":"/db/Todo","superClass":"/db/Object","acl":{"schemaAdd":{"/db/Role/1":"allow"},"schemaReplace":{"/db/Role/1":"allow"},"schemaSubclass":{"/db/Role/1":"allow"}},"fields":{"listId":{"name":"listI

But in onload node on xhr I see:

[INFO] :
[{"class":"/db/Todo","superClass":"/db/Object","acl":{"schemaAdd":{"/db/Role/1":"allow"},"schemaReplace":{"/db/Role/1":"allow"},"schemaSubclass":{"/db/Role/1":"allow"}},"fields":{"listId":{"name":"listId","type":"/db/String","order":0},"name":{"name":"name","type":"/db/String","order":1},"activities":{"name":"activities","type":"/db/collection.List[/db/Activity]","order":2},"active":{"name":"active","type":"/db/Boolean","order":3},"done":{"name":"done","type":"/db/Boolean","order":4}}},{"class":"/db/User","superClass":"/db/Object","acl":{"schemaAdd":{"/db/Role/1":"allow"},"schemaReplace":{"/db/Role/1":"allow"},"schemaSubclass":{"/db/Role/1":"allow"}},"fields":{"username":{"name":"username","type":"/db/String","order":0}}},{"class":"/db/Device","superClass":"/db/Object","acl":{"load":{"/db/Role/2":"allow"},"insert":{"/db/Role/1":"allow"},"update":{"/db/Role/1":"allow"},"delete":{"/db/Role/1":"allow"},"query":{"/db/Role/2":"allow"},"schemaAdd":{"/db/Role/1":"allow"},"schemaReplace":{"/db/Role/1":"allow"},"schemaSubclass":{"/db/Role/1":"allow"}},"fields":{"deviceOs":{"name":"deviceOs","type":"/db/String","order":0}}},{"class":"/db/Activity","acl":{"schemaAdd":{"/db/Role/1":"allow"},"schemaReplace":{"/db/Role/1":"allow"}},"embedded":true,"fields":{"start":{"name":"start","type":"/db/DateTime","order":0},"end":{"name":"end","type":"/db/DateTime","order":1}}},{"class":"/db/Role","superClass":"/db/Object","acl":{"schemaAdd":{"/db/Role/1":"allow"},"schemaReplace":{"/db/Role/1":"allow"},"schemaSubclass":{"/db/Role/1":"allow"}},"fields":{"name":{"name":"name","type":"/db/String","order":0},"users":{"name":"users","type":"/db/collection.Set[/db/User]","order":1}}},{"class":"/db/Object","acl":{"schemaAdd":{"/db/Role/1":"allow"},"schemaReplace":{"/db/Role/1":"allow"},"schemaSubclass":{"/db/Role/1":"allow"}},"fields":{"id":{"name":"id","type":"/db/String","order":0},"version":{"name":"version","type":"/db/Integer","order":1},"acl":{"name":"acl","type":"/db/JsonObject","order":2}}}]

Am 29/11/15 um 17:31 schrieb Florian Bücklers:

|.catch(function(e) { console.error(e); });|

Dipl.-Ing. Rainer Schleevoigt
Certified TYPO3 Integrator
Certified Titanium App Developer

Novalisweg 10

22303 Hamburg
℡ 040 60812460
|Ust-ID: DE239491976|||||||

@fbuecklers
Copy link
Member

It seems that the status code is not returned correctly. It will be checked before the response is parsed and handled

@fbuecklers
Copy link
Member

And to work around the getAllResponseHeaders you can use the xhr logic:

//lib/connector/XMLHttpConnector.js:63
Connector.RESPONSE_HEADERS.forEach(function(name) {
  response.headers[name] = xhr.getResponseHeader(name);
});

@AppWerft
Copy link
Author

Hi Florian

the DB connect answers with 200

and

[INFO] : { headers: {},
[INFO] : statusCode: 200,
[INFO] : entity:
'[{"class":"/db/Todo","superClass":"/db/Object","acl":{"schemaAdd":{"/db/Role/1":"allow"},"schemaReplace":{"/db/Role/1":"allow"},"schemaSubclass":{"/db/Role/1":"allow"}},"fields":{"listId":{"name":"listId","type":"/db/String","order":0},"name":{"name":"name","type":"/db/String","order":1},"activities":{"name":"activities","type":"/db/collection.List[/db/Activity]","order":2},"active":{"name":"active","type":"/db/Boolean","order":3},"done":{"name":"done","type":"/db/Boolean","order":4}}},{"class":"/db/User","superClass":"/db/Object","acl":{"schemaAdd":{"/db/Role/1":"allow"},"schemaReplace":{"/db/Role/1":"allow"},"schemaSubclass":{"/db/Role/1":"allow"}},"fields":{"username":{"name":"username","type":"/db/String","order":0}}},{"class":"/db/Device","superClass":"/db/Object","acl":{"load":{"/db/Role/2":"allow"},"insert":{"/db/Role/1":"allow"},"update":{"/db/Role/1":"allow"},"delete":{"/db/Role/1":"allow"},"query":{"/db/Role/2":"allow"},"schemaAdd":{"/db/Role/1":"allow"},"schemaReplace":{"/db/Role/1":"allow"},"schemaSubclass":{"/db/Role/1":"allow"}},"fields":{"deviceOs":{"name":"deviceOs","type":"/db/String","order":0}}},{"class":"/db/Activity","acl":{"schemaAdd":{"/db/Role/1":"allow"},"schemaReplace":{"/db/Role/1":"allow"}},"embedded":true,"fields":{"start":{"name":"start","type":"/db/DateTime","order":0},"end":{"name":"end","type":"/db/DateTime","order":1}}},{"class":"/db/Role","superClass":"/db/Object","acl":{"schemaAdd":{"/db/Role/1":"allow"},"schemaReplace":{"/db/Role/1":"allow"},"schemaSubclass":{"/db/Role/1":"allow"}},"fields":{"name":{"name":"name","type":"/db/String","order":0},"users":{"name":"users","type":"/db/collection.Set[/db/User]","order":1}}},{"class":"/db/Object","acl":{"schemaAdd":{"/db/Role/1":"allow"},"schemaReplace":{"/db/Role/1":"allow"},"schemaSubclass":{"/db/Role/1":"allow"}},"fields":{"id":{"name":"id","type":"/db/String","order":0},"version":{"name":"version","type":"/db/Integer","order":1},"acl":{"name":"acl","type":"/db/JsonObject","order":2}}}]'
}

The catch node shows:

[ERROR] : {"message":"Handling the Response for GET /schema:
undefined","name":"CommunicationError","cause":[{"class":"/db/Todo","superClass":"/db/Object","acl":{"schemaAdd":{"/db/Role/1":"allow"},"schemaReplace":{"/db/Role/1":"allow"},"schemaSubclass":{"/db/Role/1":"allow"}},"fields":{"listId":{"name":"listId","type":"/db/String","order":0},"name":{"name":"name","type":"/db/String","order":1},"activities":{"name":"activities","type":"/db/collection.List[/db/Activity]","order":2},"active":{"name":"active","type":"/db/Boolean","order":3},"done":{"name":"done","type":"/db/Boolean","order":4}}},{"class":"/db/User","superClass":"/db/Object","acl":{"schemaAdd":{"/db/Role/1":"allow"},"schemaReplace":{"/db/Role/1":"allow"},"schemaSubclass":{"/db/Role/1":"allow"}},"fields":{"username":{"name":"username","type":"/db/String","order":0}}},{"class":"/db/Device","superClass":"/db/Object","acl":{"load":{"/db/Role/2":"allow"},"insert":{"/db/Role/1":"allow"},"update":{"/db/Role/1":"allow"},"delete":{"/db/Role/1":"allow"},"query":{"/db/Role/2":"allow"},"schemaAdd":{"/db/Role/1":"allow"},"schemaReplace":{"/db/Role/1":"allow"},"schemaSubclass":{"/db/Role/1":"allow"}},"fields":{"deviceOs":{"name":"deviceOs","type":"/db/String","order":0}}},{"class":"/db/Activity","acl":{"schemaAdd":{"/db/Role/1":"allow"},"schemaReplace":{"/db/Role/1":"allow"}},"embedded":true,"fields":{"start":{"name":"start","type":"/db/DateTime","order":0},"end":{"name":"end","type":"/db/DateTime","order":1}}},{"class":"/db/Role","superClass":"/db/Object","acl":{"schemaAdd":{"/db/Role/1":"allow"},"schemaReplace":{"/db/Role/1":"allow"},"schemaSubclass":{"/db/Role/1":"allow"}},"fields":{"name":{"name":"name","type":"/db/String","order":0},"users":{"name":"users","type":"/db/collection.Set[/db/User]","order":1}}},{"class":"/db/Object","acl":{"schemaAdd":{"/db/Role/1":"allow"},"schemaReplace":{"/db/Role/1":"allow"},"schemaSubclass":{"/db/R

I think the problem is the transport of response to caller. How do you
think?

Am 29/11/15 um 18:34 schrieb Florian Bücklers:

And to work Arround the getAllResponseHeaders you can use the xhr logic:

|lib/connector/XMLHttpConnector.js:63
Connector.RESPONSE_HEADERS.forEach(function(name) {
response.headers[name] = xhr.getResponseHeader(name); }); |


Reply to this email directly or view it on GitHub
#2 (comment).

Dipl.-Ing. Rainer Schleevoigt
Certified TYPO3 Integrator
Certified Titanium App Developer

Novalisweg 10

22303 Hamburg
℡ 040 60812460
|Ust-ID: DE239491976|||||||

@fbuecklers
Copy link
Member

Renaming statusCode to status should do the trick ;-)

@AppWerft
Copy link
Author

Your are incredible awesome.

[INFO] : { source:
[INFO] : { responseText:
'{"className":"info.orestes.rest.error.NotFound","message":"Can't find
user by
token.","stackTrace":[{"fileName":"DbUserMe.java","className":"info.orestes.server.resource.db.DbUserMe","methodName":"doGet","lineNumber":35},{"fileName":"RestServlet.java","className":"info.orestes.rest.RestServlet","methodName":"doGetAsync","lineNumber":135},{"fileName":"RestServlet.java","className":"info.orestes.rest.RestServlet","methodName":"service","lineNumber":361},{"fileName":"BaseResource.java","className":"info.orestes.server.resource.BaseResource","methodName":"service","lineNumber":82},{"fileName":"RestServletHandler.java","className":"info.orestes.rest.service.RestServletHandler","methodName":"handle","lineNumber":16},{"fileName":"RestHandler.java","className":"info.orestes.rest.service.RestHandler","methodName":"handle","lineNumber":18},{"fileName":"HandlerWrapper.java","className":"org.eclipse.jetty.server.handler.HandlerWrapper","methodName":"handle","lineNumber":119},{"fileName":"RestRouter.java","className":"info.orestes.rest.service.RestRouter","methodName":"handle","lineNumber":98},{"fileName":"ContextHandler.java","className":"org.eclipse.jetty.server.handler.ContextHandler","methodName":"doHandle","lineNumber":1116},{"fileName":"ContextHandler.java","className":"org.eclipse.jetty.server.handler.ContextHandler","methodName":"doScope","lineNumber":1052},{"fileName":"ScopedHandler.java","className":"org.eclipse.jetty.server.handler.ScopedHandler","methodName":"handle","lineNumber":141},{"fileName":"HandlerCollection.java","className":"org.eclipse.jetty.server.handler.HandlerCollection","methodName":"handle","lineNumber":109},{"fileName":"HandlerWrapper.java","className":"org.eclipse.jetty.server.handler.HandlerWrapper","methodName":"handle","lineNumber":119},{"fileName":"Server.java","className":"org.eclipse.jetty.server.Server","methodName":"handle","lineNumber":517},{"fileName":"HttpChannel.java","className":"org.eclipse.jetty.server.HttpChannel","methodName":"handle","lineNumber":302},{"fileName":"HttpConnection.java","className":"org.eclipse.jetty.server.HttpConnection","methodName":"onFillable","lineNumber":242},{"fileName":"AbstractConnection.java","className":"org.eclipse.jetty.io.AbstractConnection$ReadCallback","methodName":"succeeded","lineNumber":245},{"fileName":"FillInterest.java","className":"org.eclipse.jetty.io.FillInterest","methodName":"fillable","lineNumber":95},{"fileName":"SelectChannelEndPoint.java","className":"org.eclipse.jetty.io.SelectChannelEndPoint$2","methodName":"run","lineNumber":75},{"fileName":"ExecuteProduceConsume.java","className":"org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume","methodName":"produceAndRun","lineNumber":213},{"fileName":"ExecuteProduceConsume.java","className":"org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume","methodName":"run","lineNumber":147},{"fileName":"QueuedThreadPool.java","className":"org.eclipse.jetty.util.thread.QueuedThreadPool","methodName":"runJob","lineNumber":654},{"fileName":"QueuedThreadPool.java","className":"org.eclipse.jetty.util.thread.QueuedThreadPool$3","methodName":"run","lineNumber":572},{"fileName":"Thread.java","className":"java.lang.Thread","methodName":"run","lineNumber":745}],"status":404,"reason":"Not
Found"}',
[WARN] : TiBlob: (KrollRuntimeThread) [0,1057] getNativePath not
supported for non-file blob types.
[INFO] : responseXML: null,
[INFO] : apiName: 'Ti.Network.HTTPClient',
[INFO] : timeout: undefined,
[INFO] : domain: null,
[INFO] : readyState: 3,
[INFO] : status: 404,
[INFO] : autoRedirect: true,
[INFO] : tlsVersion: 0,
[INFO] : file: undefined,
[INFO] : validatesSecureCertificate: false,
[INFO] : autoEncodeUrl: true,
[INFO] : statusText: 'Not Found',
[INFO] : username: null,
[INFO] : _hasJavaListener: undefined,
[INFO] : password: null,
[INFO] : allResponseHeaders: 'Server:nginx/1.9.5\nDate:Sun, 29 Nov
2015 20:55:17
GMT\nContent-Type:application/json;charset=iso-8859-1\nContent-Length:3276\nConnection:keep-alive\nCache-Control:must-revalidate,
no-cache, no-store\n',
[INFO] : location: 'http://tutorial.baqend.com/db/User/me',
[INFO] : responseData:
[INFO] : { file: null,
[INFO] : nativePath: null,
[INFO] : height: 0,
[INFO] :
Am 29/11/15 um 21:13 schrieb Florian Bücklers:

Renaming statusCode to status should do the trick ;-)


Reply to this email directly or view it on GitHub
#2 (comment).

Dipl.-Ing. Rainer Schleevoigt
Certified TYPO3 Integrator
Certified Titanium App Developer

Novalisweg 10

22303 Hamburg
℡ 040 60812460
|Ust-ID: DE239491976|||||||

@fbuecklers
Copy link
Member

Is there still an issue? If you are not logged in this error is expected and the sdk should be ready.

@AppWerft
Copy link
Author

I have to register a user -- stupide question?

OK, next week I will implement websockets.

Am 29/11/15 um 22:08 schrieb Florian Bücklers:

Is there still an issue? If you are not logged in this error is
expected and the sdk should be ready.


Reply to this email directly or view it on GitHub
#2 (comment).

Dipl.-Ing. Rainer Schleevoigt
Certified TYPO3 Integrator
Certified Titanium App Developer

Novalisweg 10

22303 Hamburg
℡ 040 60812460
|Ust-ID: DE239491976|||||||

@malte-lau
Copy link
Contributor

No, you can just ignore the error, if you don’t need authentication.
Any public information should be accessible now.
This error is usually not printed or logged, it is probably just the information that you are not already logged-in by cookie from your last visit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants