meteor

Tokbox failed to create session

这一生的挚爱 提交于 2020-02-23 06:39:07
问题 [Error: Failed to createSession. Error: An authentication error occurred: (403) {"code":-1,"message":"Expired token"}] I was able to create a session just fine on my localhost server, but when I put it in production - which has https - the error occurs. I am using tokbox with Meteor framework and wraping the function inside a method: const opentok = new OpenTok(Meteor.settings.public.opentok.apiKey, Meteor.settings.public.opentok.apiSecret); let createSessionSync = Meteor.wrapAsync(opentok

Tokbox failed to create session

不羁岁月 提交于 2020-02-23 06:39:05
问题 [Error: Failed to createSession. Error: An authentication error occurred: (403) {"code":-1,"message":"Expired token"}] I was able to create a session just fine on my localhost server, but when I put it in production - which has https - the error occurs. I am using tokbox with Meteor framework and wraping the function inside a method: const opentok = new OpenTok(Meteor.settings.public.opentok.apiKey, Meteor.settings.public.opentok.apiSecret); let createSessionSync = Meteor.wrapAsync(opentok

How to create dynamic assets in Meteor

巧了我就是萌 提交于 2020-02-23 04:48:44
问题 I thought this would be easy. I want to create simple files the user can download by clicking a link. Write what you want into the servers assets/app folder and then generate a simple link <a href="/new.txt" download="yourNewFile.txt">Download> me!</a> Writing files into Meteor's server side asset folder is easy. And the download link above will always download a file with the name you specified. You will get a yourNewFile.txt in the client's download folder. But, unfortunately its content

Uncaught Error: No Iron.Layout found so you can't use yield

江枫思渺然 提交于 2020-02-21 13:03:56
问题 Using Meteor 0.9.3 and iron:router 1.0.0-pre2, this error shows on the console even though iron:layout was installed, see below: willems-mini:iron willem$ meteor add iron:router@=1.0.0-pre2 added iron:location at version 1.0.0-pre2 added iron:dynamic-template at version 1.0.0-pre2 added iron:router at version 1.0.0-pre2 added iron:layout at version 1.0.0-pre2 added iron:middleware-stack at version 1.0.0-pre2 added iron:url at version 1.0.0-pre2 added iron:controller at version 1.0.0-pre2

Uncaught Error: No Iron.Layout found so you can't use yield

旧城冷巷雨未停 提交于 2020-02-21 12:56:19
问题 Using Meteor 0.9.3 and iron:router 1.0.0-pre2, this error shows on the console even though iron:layout was installed, see below: willems-mini:iron willem$ meteor add iron:router@=1.0.0-pre2 added iron:location at version 1.0.0-pre2 added iron:dynamic-template at version 1.0.0-pre2 added iron:router at version 1.0.0-pre2 added iron:layout at version 1.0.0-pre2 added iron:middleware-stack at version 1.0.0-pre2 added iron:url at version 1.0.0-pre2 added iron:controller at version 1.0.0-pre2

Retrieving Data from Meteor Collections

旧巷老猫 提交于 2020-02-18 14:28:06
问题 I'm having a few problems when trying to get data from a Meteor Collection and I need some advice. The collection has been defined, published, and subscribed successfully. If I send the data to a template, it displays fine: Template.Lists.Projects = function(){ return Projects.find(); }; But I am trying to use the data before displaying it, and this is where I run into problems. First, I'm getting some inconsistencies between find() and findOne(). find(selector) works fine and returns a

Overide bootstrap base class attributes in less and meteor

别来无恙 提交于 2020-02-08 07:24:36
问题 I am trying to change the behaviour of a bootstrap class in my meteor code and have naively tried the following. In my html I have added a class tb-sponsor to the div class list <div class="col-md-8 column tb-sponsor"> <h4> <strong>Papallo Kitchen & Joinery</strong></h4> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean enim diam, imperdiet et sem nec. </div> and in the tb.less file added .tb-sponsor{ .h4 { color: @tb-color; } } to try and change the color of the h4. Nothing

Overide bootstrap base class attributes in less and meteor

倾然丶 夕夏残阳落幕 提交于 2020-02-08 07:23:02
问题 I am trying to change the behaviour of a bootstrap class in my meteor code and have naively tried the following. In my html I have added a class tb-sponsor to the div class list <div class="col-md-8 column tb-sponsor"> <h4> <strong>Papallo Kitchen & Joinery</strong></h4> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean enim diam, imperdiet et sem nec. </div> and in the tb.less file added .tb-sponsor{ .h4 { color: @tb-color; } } to try and change the color of the h4. Nothing

How to display children of “publish-composite collection” on Template View

痴心易碎 提交于 2020-02-08 02:30:10
问题 Considering the example given at https://github.com/englue/meteor-publish-composite How to display nested children on the template view. I mean, displaying top 2 comments on the post on the view. I have searched a lot over internet for this children tree display on Template View, didn't find any. Code publishComposite('topTenPosts', { find() { // Find top ten highest scoring posts return Posts.find({}, { sort: { score: -1 }, limit: 10 }); }, children: [ { find(post) { // Find post author.

Meteor testing app using local server and custom ip

社会主义新天地 提交于 2020-02-06 07:59:44
问题 I'm developing an meteor application client/server and app, too. when i compile my application using this command: meteor run ios-device --mobile-server 192.168.2.126 App on device cannot connect to server (my server is on local network) and return this error in javascrip console: Failed to load resource: Could not connect to the server. If i use: meteor run ios-device it works perfecly. Why? I need to have application installed on different server in different network. The server has always