Comments (4)
As a quick remediation I propose to use console.warn()
and console.error()
instead of console.log()
at least for warn
and error
in output.ts
$ cat warn-test.js
console.log("this is a standard output")
console.warn("this is a warning")
console.error("this is an error")
$ node warn-test.js 2>/dev/null
this is a standard output
from apify-cli.
Feel free to PR the changes, because I agree and they look correct!
from apify-cli.
Yeah, good point.
from apify-cli.
The same goes for the info
level:
$ cat storage/key_value_stores/default/INPUT.json
{
"urls": [
"http://google.com"
]
}
$ apify actor:get-input 2>/dev/null
Info: Making sure that Apify CLI is up to date...
Info: Apify CLI is up to date 👍
{
"urls": [
"http://google.com"
]
}
Info: Apify collects telemetry data about general usage of Apify CLI to help us improve the product. This feature is enabled by default, and you can disable it by setting the "APIFY_CLI_DISABLE_TELEMETRY" environment variable to "1". You can find more information about our telemetry in https://docs.apify.com/cli/docs/telemetry.
INPUT: http://google.com
That isn't a parseable JSON output.
from apify-cli.
Related Issues (20)
- New release process
- `apify call` to support input passing HOT 2
- Add spec to shell autocomplete tool Fig HOT 2
- Interface for making "raw" API calls
- Storage isn't purged for non-crawlee Apify SDKv3 projects HOT 11
- `apify run --purge` doesn't purge HOT 5
- apify push and call do not validate whether they are in an Actor folder HOT 3
- `actor:push-data` doesn't work in the Apify Platform HOT 4
- Better CLI API HOT 7
- Cryptic error message when `actor.json` is an invalid JSON
- Add in a flag to make commands output machine-readable results instead of human readable ones HOT 7
- Figure out a better auth file structure for future extensibility
- Experiment with Bun bundling for distributing the CLI as a single-file executable HOT 1
- Actor.getInput returns null HOT 12
- Version 0.20.0 installed via NPM fails to work HOT 3
- Clean up the purging logic for crawlee projects
- Support usage of `apify push` with monorepo projects
- Error: Could not send API token to CLI HOT 2
- .actor/actor.json not being found?
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 apify-cli.