[tw] Re: Serving TW5 on remote Node.js server. When access tiddlywiki from browser, tw5 script fails with error: The header content contains invalid characters

2017-08-23 Thread Shareda
Wow! 
As I initialize new empty wiki with username "u1" & password "p1", the 
problem disappears. I can create new tiddlers. I even can replace new 
tiddlywiki files by files from the first one. 

But if i change username and password (when starting this new tiddlywiki), 
the problem is back.

So, by now i found only this way to use node.js version of TW5 on remote 
VPS (CentOS 6): 
1. init new tiddlywiki; 
2. sart tiddlywiki server with final username & password;
3. use, use, use;
4. don't change username & password when restarting server; 
5. don't run another instances on differnt ports with different 
username
6. if 4 or 5 is violated, then access became impossible, go to 1.


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2506a1fd-f297-4ced-b2b4-52f252a69474%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Serving TW5 on remote Node.js server. When access tiddlywiki from browser, tw5 script fails with error: The header content contains invalid characters

2017-08-23 Thread RichardWilliamSmith
Do you have centos on your local machine? Are you able to try a different 
OS on your VPS? Possibly try an *earlier* version of node? Have you tried a 
very simple username/password that definitely doesn't have special 
characters in it?

On Wednesday, August 23, 2017 at 5:42:08 PM UTC+10, Shareda wrote:
>
> So, back to remote VPS:
> I've reinstalled node.js LTS and even tried  Node.js 8, but error is the 
> same (ecxept line numbers). Hmm... What can it be? 
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/abfab1c5-aa87-4f5a-9cac-b99ca96481db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Serving TW5 on remote Node.js server. When access tiddlywiki from browser, tw5 script fails with error: The header content contains invalid characters

2017-08-23 Thread Shareda
I've reinstalled node.js LTS and even tried  Node.js 8, but error is the 
same (ecxept line numbers). Hmm... What can it be? 

среда, 23 августа 2017 г., 1:29:51 UTC+6 пользователь Shareda написал:
>
> вторник, 22 августа 2017 г., 15:03:02 UTC+6 пользователь 
> RichardWilliamSmith написал:
>>
>> Does it work locally, if you run the same server on your own machine?
>>
>
>
> Yes! It works locally, if i run server with the same prms. I can set any 
> usernames, passwords, ports, and access from any browser, tw5 is ok!
>
> Thanks, RichardWilliamSmith!  
> As I see now, the problem is on my VPS/CentOS6/Node.js installation. Is it 
> correct? And what i should try first?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/decdda20-b424-41c5-bbe8-02833dca870b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Serving TW5 on remote Node.js server. When access tiddlywiki from browser, tw5 script fails with error: The header content contains invalid characters

2017-08-22 Thread Shareda
вторник, 22 августа 2017 г., 15:03:02 UTC+6 пользователь 
RichardWilliamSmith написал:
>
> Does it work locally, if you run the same server on your own machine?
>


Yes! It works locally, if i run server with the same prms. I can set any 
usernames, passwords, ports, and access from any browser, tw5 is ok!

Thanks, RichardWilliamSmith!  
As I see now, the problem is on my VPS/CentOS6/Node.js installation. Is it 
correct? And what i should try first?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b992fc78-4955-482c-bfc0-acc37c0d3c0d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Serving TW5 on remote Node.js server. When access tiddlywiki from browser, tw5 script fails with error: The header content contains invalid characters

2017-08-22 Thread Shareda
Hi, Tony and RichardWilliamSmith! Thanks for your answers!
Tony, yes I restarted whole VPS to exclude other test instances of 
TiddlyWiki, but behaviour just the same: as I request : from 
browser, password-protected TW5 server fails with that error. 

I tried oter ports - the same result. Also I tried different simple 
usernames and passwords:  & , user & pass, "uu" & "pp",  "" & "" , 
but only the last combination works. 

Yet I did not try to find, learn and start server my own local machine.

Single file copy works fine.

вторник, 22 августа 2017 г., 15:03:02 UTC+6 пользователь 
RichardWilliamSmith написал:
>
> Could it just be an "invalid character" in your username? Have you tried 
> it with the simplest possible username/password combo? 
>
> Does it work locally, if you run the same server on your own machine?
>
>
 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7022ff60-4834-4bf0-8a6e-1301aa24c5b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Serving TW5 on remote Node.js server. When access tiddlywiki from browser, tw5 script fails with error: The header content contains invalid characters

2017-08-22 Thread RichardWilliamSmith
As far as I can tell this is Node itself crashing (storeHeader is in 
_http_outgoing.js at this memorable url - 
https://github.com/nodejs/node/blob/11a2ca29babcb35132e7d93244b69c544d52dfe4/lib/_http_outgoing.js)
 

It would seem Tiddlywiki is creating/allowing something that Node doesn't 
like.

Could it just be an "invalid character" in your username? Have you tried it 
with the simplest possible username/password combo? 

Does it work locally, if you run the same server on your own machine?

Regards,
Richard

On Monday, August 21, 2017 at 10:47:21 PM UTC+10, Shareda wrote:
>
> If I remove username & password, then everything works fine, but i need to 
> limit access.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8c3f9e9f-58bd-4936-ad24-f0f3b310cd27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Serving TW5 on remote Node.js server. When access tiddlywiki from browser, tw5 script fails with error: The header content contains invalid characters

2017-08-21 Thread TonyM
Hi,

I am not expert enough to provide the answer. Perhaps you could create a new 
instance on another port. Create a few tiddlers and see if you can implement 
the user ID password. If it works bring over the nessasary tiddlers. Otherwise 
in the problem instance or its files on disk looking for an odd character for a 
clue or if you are encrypting something.

Tony

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0e0f963b-1be5-4fea-837a-2f151f78b254%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Serving TW5 on remote Node.js server. When access tiddlywiki from browser, tw5 script fails with error: The header content contains invalid characters

2017-08-21 Thread Shareda
If I remove username & password, then everything works fine, but i need to 
limit access.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d7077302-4d4c-4c72-a697-25bdbbab3708%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Serving TW5 on remote Node.js server. When access tiddlywiki from browser, tw5 script fails with error: The header content contains invalid characters

2017-08-21 Thread Shareda
Maybe somebody knows, what can I fix to make tw5 work with this parameters?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fbc3cf71-6716-494a-9f89-94d97ea8c79e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.