Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

213
Vistas
Getting 502 error when adding `const solc = require('solc')` to AWS lambda function

I'm getting 502 responses when trying to simply add const solc = require('solc') to a deployed AWS lambda function. I've successfully used used a variety of different node packages in this lambda function with no problems. Also, I've used the solc module locally and in other contexts with no problems. What can I do to get to successfully require the solc module?

Lambda function:

const solc = require('solc')

module.exports = {
  constructContractTx: async(event, web3) => {
    // compileContract(event)
    return {
      body: 'testing',
      status: 200
    }
  }
}

package.json:

{
  "name": "...",
  "version": "1.0.0",
  "description": "...",
  "main": "app.js",
  "repository": "...",
  "author": "Chris Dougherty",
  "license": "MIT",
  "dependencies": {
    "@alch/alchemy-web3": "^1.1.9",
    "@ethereumjs/common": "^2.6.2",
    "@ethereumjs/tx": "^3.5.0",
    "axios": "0.21.1",
    "dotenv": "^15.0.0",
    "faunadb": "^4.4.1",
    "fs": "^0.0.1-security",
    "path": "^0.12.7",
    "solc": "0.8.10",
    "web3": "1.5.2"
  },
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  }
}
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda