Comments (3)
yes you are sending the identity not wrapped into data
field that is demanded by the restroom api... can you double check with:
Rule caller restroom-mw
Given I have a 'string' named 'add-identity'
Given I have a 'string dictionary' named 'identity'
Given I have a 'string dictionary' named 'output'
Given I connect to 'add-identity' and pass it the content of 'data' and save the output into 'output'
Then print data
with the following:
{
"add-identity": "https://apiroom.net/api/dyneorg/consensusroom-add-identity",
"data": { "identity": {
"Kenshiro": {
"baseUrl": "http://192.168.0.100:3030",
"ip": "192.168.0.100",
"public_key": "BGiQeHz55rNc/k/iy7wLzR1jNcq/MOy8IyS6NBZ0kY3Z4sExlyFXcILcdmWDJZp8FyrILOC6eukLkRNt7Q5tzWU=",
"timeServer": "http://localhost:3312",
"uid": "Kenshiro",
"version": "1"
}
}
}
}
from restroom-mw.
I was wrapping it right, just tried, I get the same error 500
from restroom-mw.
Just added an example so you can copy from:
https://github.com/dyne/restroom-mw/blob/master/test/http/endpoint.zen
https://github.com/dyne/restroom-mw/blob/master/test/http/post-restroom.zen
https://github.com/dyne/restroom-mw/blob/master/test/http/post-restroom.keys
from restroom-mw.
Related Issues (20)
- Redis module stays alive after the SC executing it is done HOT 1
- (http) statement that does parallel POST to array of endpoints
- For loop needs passthrough of objects
- Redis mw behaviour if key doesn't exist
- Redis key should be read from Zenroom input
- TypeError: getRedisClient is not a function
- GET and POST should be done both in on.before and in on.success
- Option template yarn create
- create-restroom --version param HOT 1
- Search keys by name in redis HOT 2
- Crash with scenario parser in @restroom-mw/zencode HOT 3
- Redis: SET_OBJECT_NAMED = "write {} into redis under the key named by {}", HOT 1
- Remove key in Redis
- Read array of ethereum balances
- Cannot query a Postgres database from Restroom HOT 1
- Implement GET calls
- Given statement to generate a dictionary listing of files found in a directory HOT 3
- Given statement to get the calling URL and method HOT 1
- Then statement to append to a logfile HOT 1
- Then statements to add files and make a commit to a local git repository HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from restroom-mw.