Code Monkey home page Code Monkey logo

Comments (15)

dwrensha avatar dwrensha commented on August 26, 2024

Hi!
You should see a "powerbox request" menu appear, giving you the option to select any of your grains to add to the collection.

What browser are you using? Do you see any errors in the browser debug console? Is this on Oasis or on a private Sandstorm instance?

from collections-app.

oec avatar oec commented on August 26, 2024

I attached the menu I see:

screenshot 2016-11-28 at 17 13 16

Neither clicking on "Add grain.." nor on "+" trigger any functionality, not even a message in the debug console. Looking on the registered handlers for the corresponding button-tag it seems that the handler to tr.add-grains is "emptyFunction()", maybe that is a hint?

I use chrome on a chromebook (56.0.2920.0 dev (64-bit)) and the sandstorm-instance is private, using also a private wildcard-certificate.

from collections-app.

dwrensha avatar dwrensha commented on August 26, 2024

Is the certificate self-signed? Do you have any ad-blocking plugins enabled?

from collections-app.

oec avatar oec commented on August 26, 2024

The certificate is signed by a CA that is installed on the client side. All other installed apps on our sandstorm-instance work flawlessly with this setup. No ad-blocking plugin is enabled.

from collections-app.

dwrensha avatar dwrensha commented on August 26, 2024

Do you see the same behavior in a Collections grain on Oasis? You can try through the demo: https://oasis.sandstorm.io/apps

from collections-app.

oec avatar oec commented on August 26, 2024

No, on the demo-site I actually do get a "Powerbox request" menu.

from collections-app.

dwrensha avatar dwrensha commented on August 26, 2024

Clicking on the "add grain" row initiates a postMessage() to the grain iframe's parent frame. The grain is served from your WILDARD_HOST, and the parent is server from BASE_URL. Is your WILDCARD_HOST not a subdomain of your BASE_URL? I vaguely remember hearing about other people getting in trouble when that was the case. @paulproteus probably knows more than I do about such problems.

from collections-app.

dwrensha avatar dwrensha commented on August 26, 2024

(oops, I intially tagged the wrong person for @paulproteus)

from collections-app.

dwrensha avatar dwrensha commented on August 26, 2024

I expect that the (+) button in the Wekan app under "members" will also not work for you on your private server, because it uses a similar powerbox postMessage().

from collections-app.

oec avatar oec commented on August 26, 2024

these are our settings in the sandstorm.conf:

BASE_URL=https://foo.bar.com
WILDCARD_HOST=sandstorm-*.foo.bar.com:443

Semantically, WILDCARD_HOST refers to subdomains underneath of BASE_URL. Maybe there is a formal mismatch?

Indeed, in the Wekan app, I can not add members.

from collections-app.

dwrensha avatar dwrensha commented on August 26, 2024

Does it help to remove the ":443" from the WILDCARD_HOST?

from collections-app.

oec avatar oec commented on August 26, 2024

Bazinga, that worked indeed! I can now add grains to the collection!

Thanks for the tip!

PS: I blindly followed someone's HOWTO on how to setup a self-hosted, wildcarded sandstorm instance and, IIRC, providing the port on the WILDCARD_HOST was part of it.

from collections-app.

dwrensha avatar dwrensha commented on August 26, 2024

Cool! I'm happy to have helped.

If you happen to still have a link to that tutorial, I'd be interested in seeing it.

from collections-app.

paulproteus avatar paulproteus commented on August 26, 2024

Thanks to both of you for looking into this and discovering the solution, and I'm looking forward to making it harder to make these kinds of mistakes.

from collections-app.

oec avatar oec commented on August 26, 2024

I'm can't recall the links to the various resources/howtos I used other than the sandstorm-docs - the links I get from google right now aren't the ones I used.

However, actually, it might very well be I was confused about this (from the sandstorm FAQ):

Make sure the WILDCARD_HOST has valid syntax. In the Sandstorm config file (typically /opt/sandstorm/sandstorm.conf), look for the WILDCARD_HOST config item. Note that this should not have a protocol as part of it but does need a port number if BASE_URL specifies a port number. A valid line might be:
WILDCARD_HOST=*.yourname.sandcats.io:6080

(highlight is mine) I probably ignored the highlighted part and simply extrapolated from ":6080" to ":443".

from collections-app.

Related Issues (12)

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.