Questions tagged [actionhero]

actionhero.js is a multi-transport API Server with integrated cluster capabilities and delayed tasks.

actionhero.js is a multi-transport API Server with integrated cluster capabilities and delayed tasks.

actionhero was built from the ground up to include all the features you expect from a modern API framework. actionhero also knows when to get out of the way to allow you to customize your stack to fit your needs.

actionhero provides HTTP, TCP (socket), websockets, or your own custom defined servers. It has a solid action-based API system, as well as support for background tasks. It is also cluster-ready for when you decided to scale up your project.

Website. Tutorial.

19 questions
2
votes
1 answer

actionHero.js Set Http Header

I want to know if there is a way to Set the Http.Header in actionHero.js: in our server we are working with actionHero.js and Go. I need to send on the "Header" two domain name "client domain & mine(actionHero Service)" to the Go service. or if…
abdel
  • 665
  • 1
  • 11
  • 25
1
vote
2 answers

why actionherojs Task does not start Automatically?

I want to run a task every 5 minutes using actionhero task in node.js, the task that I defined in task folder is as below: 'use strict'; exports.task = { name: 'scheduleTask', description: 'Convert Temp Data Into Portal', frequency:…
Moya
  • 21
  • 2
1
vote
1 answer

What is the best way to get key-value in HTTP header request in ActionHero.js?

To extract key-value in header of HTTP request sent to ActionHero.js server, I have to type long chain then split to get what I want data.connection.rawConnection.req.rawHeaders.... Is there any better way to get such as data.headers.key
1
vote
1 answer

ActionHero.js Framework with Oracle database persistence

I am quite new working with nodejs, I need to make a REST API that can work with websocket. I was searching for a framework that I could work with, I found actionhero.js, I think that can fit my needs. But I see a little problem with this…
1
vote
1 answer

ActionHero js with Mongoose

I am creating some rest API with ActionHero js and Mongoose. I put the Mongoose code in an initalizers and everything works. When I modify some files the project automatically recompiles and it returns the following error: OverwriteModelError:…
Mino
  • 635
  • 10
  • 28
1
vote
2 answers

NSstream write encoding issues

Im trying to send a string using NSoutputstream , however i cant seem to get the encoding right , using dataWithContentsOfURL works im using a nodejs TCP server with actionHero library. it works using netcat and telnet. -…
henghonglee
  • 1,732
  • 3
  • 20
  • 29
0
votes
1 answer

actionherojs - KeepAliveTimeout, headersTimeout

Actionhero server sometimes receives 502 errors. The actionhero server is configured as AWS ECS and is called AWS ALB. I'm looking for a way to set up the headersTimeout, because i heard it can prevent errors in 502. how to set keepAliveTimeout and…
0
votes
1 answer

how start actionhero by pm2

I'm starting actionhero by this command pm2 start .\node_modules\actionhero\bin\actionhero But actionhero doesn't start successfully and this is in my pm2 log: error: No config directory found in this project, specified with --config, or found in…
Sifb71
  • 41
  • 10
0
votes
1 answer

Actionhero actions returning immediately

I'm trying to understand a core concept of ActionHero async/await and hitting lots of walls. Essentially, in an action, why does this return immediately, rather than 500ms later? async run (data) { setTimeout(() => data.response.outcome =…
0
votes
1 answer

Actionhero worker (node) to run on different machine and one node is "Resque scheduler master", which assign task to remote workers

I have made (localhost:8080) scheduler: true in one node to make it scheduler master. Other node have schedule turned off (localhost:8000) scheduler: false How will "scheduler master" assign task to other node..??
0
votes
2 answers

How can Actionhero receive the parameter without inputs defined?

I'm using ActionHero in node.js and Angular.js. I am trying images send to ActionHero using $http method. but I don't know How many images are made. so I can't define the parameter names on action in ActionHero. below is my source. First. images are…
EddyKim
  • 155
  • 1
  • 14
0
votes
1 answer

How to programmatically call action in ActionHero.js

I'm new to ActionHero and I have a need to add something to the queue, wait until that is finished and get the data back, then proceed with another queue'd item before responding to the client. Looks like this: API client hits /foo the foo action…
Oscar Godson
  • 31,662
  • 41
  • 121
  • 201
0
votes
1 answer

Action Hero JS Post API

I am totally new to Action HeroJS and I was wondering how can I restricted users to access my action herojs rest API, url from the browser? I have even put the route as POST, but it is still accessible by get method? Just like in java when we…
Manam
  • 354
  • 5
  • 16
0
votes
2 answers

how to execute a command line in node.js?

I am using the actionhero framework, it can be started by command actionhero start. but the problem is that, my cloud node.js app runner can only run an app by specify a main file, such as index.js. How can I adapt my app to be started by a normal…
Yao Zhao
  • 4,373
  • 4
  • 22
  • 30
0
votes
2 answers

Assigning middlewares to specific actions in ActionHero

Is the anyway to add some middleware to specific actions? because as far as I know addPreProcessor adds the middleware to all the actions? lets say you don't want to have authentication or some other checks on some actions, is there any solution? I…
DanialK
  • 1
  • 1
1
2