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):…
Weiterlesennpm 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:…
WeiterlesenHow 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…
WeiterlesenIntegrating the BSEC in CircuitPython (A work in progress)
A short post about using a static C library inside CircuitPython and a progress report on wrapping the BSEC library in particular.
WeiterlesenUpdating 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…
WeiterlesenSplitting envoy envoy.yaml configuration into multiple files (Docker only)
I am handling four different ports / cases with Envoy: IPv6 http IPv4 http IPv6 https IPv4 https For IPv6 and IPv4 the configuration is the same, whereas for http there is a different configuration than for https. To realize this, I have split my envoy configuration into several snippets, and add them together during…
WeiterlesenHow to restore images for a Shopify product you’ve overwritten accidentally by CSV file
Problem: (wrong handling of CSV files) Yesterday I wanted to bulk-edit products in Shopify, and to change the vendor. I used LibreOffice to select just the rows with the vendor in it, updated it, and uploaded only these updated rows as a new CSV to Shopify. The result was that Shopify dropped many variants, and…
Weiterlesenraspi-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…
WeiterlesenHow 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