getting error when trying to connect
yesco opened this issue · 2 comments
I'm trying to make a minimial mimimial app. Using a local file. That seems to be a nono?
get this error here, but remote storage is loading my "file://" after redirecting here and there, seems backwards.
URI::InvalidURIError in Authorizations#new
Showing /home/nil/apps/remotestorage-ruby/app/views/authorizations/new.haml where line #11 raised:
the scheme file does not accept registry part: : (or bad hostname?)
Extracted source (around line #11):
8:
9: %p
10: The app at
11: %strong{:title => f.object.origin}= f.object.origin_host
12: requests access to the following things:
13:
14: %table{:border => '1', :style => 'border-collapse:collapse'}
Rails.root: /home/nil/apps/remotestorage-ruby
Application Trace | Framework Trace | Full Trace
app/models/authorization.rb:48:in origin_host' app/views/authorizations/new.haml:11:in
block in _app_views_authorizations_new_haml__72010458_94593310'
app/views/authorizations/new.haml:2:in _app_views_authorizations_new_haml__72010458_94593310' lib/fixes/strip_last_modified.rb:9:in
call'
lib/fixes/path.rb:12:in `call'
Request
Parameters:
{"login"=>"jsk",
"redirect_uri"=>"file:///home/jsk/Src/V8/GIT/panda/rs.html",
"client_id"=>"",
"scope"=>"notes:rw",
"response_type"=>"token"}
Show session dump
Show env dump
Response
Headers:
None
yes, we should make that error more descriptive, but file:// URLs don't work, indeed. Try deploying your app to 5apps.com, they specialize in hosting client-side web apps, and it's free as long as your app is open source.
or you could get a minimal http server somewhere (https://unhosted.org/adventures/ has examples), and run it on http://localhost/
On most computers you can use the web server that's built into Python, like so:
# cd to root dir
python -m SimpleHTTPServer