mailerlite API error code 422 for subscribers endpoint

Today, I was implementing the interfacing between PiCockpit.com and the Mailerlite API (which we use aus our newsletter software). https://api.mailerlite.com/api/v2/subscribers I got the following error message: The POST request was returning 422 as status code. Unfortunately there is little documentation about that on Mailerlite. My implementation was correct (this is Crystal Lang by the way):…

Weiterlesen

npm Webpack code ELIFECYCLE errno 1

When building the PiCockpit frontend code (which is packaged using Webpack) on a different computer, I ran into the following issue: cross-env NODE_ENV=production webpack –progress –hide-modules –mode=productiontype: ‘object’,additionalProperties: true,properties: {apply: {description: ‘The run point of the plugin, required method.’,instanceof: ‘Function’,tsType: “(compiler: import(‘../lib/Compiler’)) => void”}},required: [ ‘apply’ ]}},title: ‘WebpackOptions’,description: ‘Options object as provided by the user.’,type:…

Weiterlesen

How to manage a security breach on your server

Modern servers frequently run a multitude of software applications. In our case, we use Docker on the server to run multiple services. One of these services, Gitlab, had a security issue (gitlab workhorse more specifically). Which led to a trojan infection. (In our case, the binaries were called “wate” in case this matters to someone…

Weiterlesen

Updating Variant Images in Shopify using CSV

Shopify has a possibility to update fields using a CSV file. This is useful if you want to update a lot of images. Shopify will download these images from a remote server if necessary, so you can provide URLs of your choice. You only need to provide the values you want to update, along with…

Weiterlesen

Synchronizing file uploads between browser windows

For PiCockpit, I am currently developing the Digital Nose app. This app requires an upload for the BSEC configuration file – which is binary data. Once the user uploads the file, it gets published via MQTT, and picockpit-client can use it to configure the BSEC AI algorithm to do gas detection. Here is a little…

Weiterlesen

raspi-config nonint do_i2c 1 hangs “forever”

While developing PiCockpit, and trying to allow the user to turn I2C off from the webinterface, I have run into crashes and problems. I am using raspi-config in non-interactive mode (I’ve written about this before) to control I2C from the PiCockpit client. While debugging the issue, I noted that – if something was busy accessing…

Weiterlesen

How to enable bluetooth headphones on Windows 8.1

To follow this guide, your device should already be paired. (Windows + C > Settings > Change Computer Settings) Open system control panel, and choose the Sound control panel Your headphones should show up in the control panel. Mine are the Soundcore Life Q30 Stereo. (Note you can choose between headset and headphones here.) be…

Weiterlesen