Questions tagged [opa]

Opa is an open source programming language for both backend and frontend web development. Opa therefore provides a unified syntax and semantics for writing all aspects of a web application: client-side, server-side and database queries. But it’s not only about expressiveness: Opa also features a unique type system that provides strong static typing from the client UI to the MongoDB queries.

Important links:

251 questions
0
votes
1 answer

Error when trying to build Opa application

I'm just trying to build the basic hello_chat application from the Opa docs. If I try building from the command line using: opa ..filepath\hello_chat.opa I get an error saying Warning inclusions.directory_does_not_exist Error reading directory:…
jjcohen
  • 59
  • 5
0
votes
1 answer

How do I make a client side http request in opa?

I need to make a client side http request to receive a string. I am struggling to find a method that works on the client. I found WebClient.Get. But this one only works on the server. Threading it through opa's client/server communication is not an…
Martin Lütke
  • 722
  • 7
  • 11
0
votes
0 answers

Json data in an object

I would like put the json data in a object in opa. I saw a comment ( parsing a webclient.Result content in OPA ) which describes how to do that but I tried that approach and can't make it work with my application. Here's my code : type service = { …
yusulu
  • 11
  • 1
0
votes
1 answer

opa 1.01 : node.js -> Error: Cannot find module 'mongodb'

I've tried to compile my opa project with the new release 1.0.1. I'm now using : node myApp.js to run the server. I get the following error : module.js:337 throw new Error("Cannot find module '" + request + "'"); Error: Cannot find module…
Guillaume
  • 289
  • 1
  • 7
0
votes
1 answer

Opa exectuable error: Can't get system language

I'm just learning the Opa language and going through their Manual. In the third section of the Manual, it shows you how to build the app "Hello, chat". I have copied and pasted the .css and .opa files and have buit the .exe file. When I run it, I…
moesef
  • 4,641
  • 16
  • 51
  • 68
0
votes
1 answer

Opa : adding data to

How can I add specific markusp like meta, script, ... into the head section of an html document using Oap ? Thanks
Guillaume
  • 289
  • 1
  • 7
0
votes
0 answers

Opa : Fatal error: exception Sys_error("Cannot allocate memory")

When I restart my opa application, I get the following error : Fatal error: exception Sys_error("Cannot allocate memory") I have to delete the database, which is almost empty, to be able to restart the application. Note that I observe this error…
Guillaume
  • 289
  • 1
  • 7
0
votes
1 answer

opa textarea width

I'm using bootstrap and opa to display a textarea, and I don't manage to span my textarea over all the screen width. I'm using the following simple code : import stdlib.themes.bootstrap; import stdlib.widgets.bootstrap; WB = WBootstrap; textInput…
Guillaume
  • 289
  • 1
  • 7
0
votes
1 answer

opa server timeout

I have the following error : Error: uncaught OPA exception {OpaRPC_Server: {timeout: {client: {client: $"j98soqx7hbavgq2scg915j7mlkctdeop"$; page: $1 042254815$}; fun_id: $"_v0_get_value_stdlib.core.xhtml"$}}} with the simple code below : function…
Guillaume
  • 289
  • 1
  • 7
0
votes
1 answer

Opa session error

I've got the following error with my opa application : [SESSION] Uncaught exception: "{OpaRPC_Server: {timeout: {client: {client: $"s2jtpj3tbyztpfbrm3gf8bd2k7kcnxg1"$; page: $ 896774575$}; fun_id: $"_v0_get_value_stdlib.core.xhtml"$}}}" The…
Guillaume
  • 289
  • 1
  • 7
-1
votes
1 answer

How to import policies from different files

This could potentially be a duplicate of this post but I'm still having real trouble. I have a function defined in one file. A.rego package authorizer default username := null decode_user(jwt) := user_id { // logic to decode token & return…
1 2 3
16
17