roger-heathcote / image-cache Goto Github PK
View Code? Open in Web Editor NEWGets images, recompresses to webm, publishes with very long cache settings
Gets images, recompresses to webm, publishes with very long cache settings
Transparent background, min height 225, cover if larger.
Return "unknown" for params that aren't defined.
https://developers.facebook.com/tools/debug/
Provided og:image, could not be downloaded. This can happen due to several different reasons such as your server using unsupported content-encoding. The crawler accepts deflate and gzip content encodings.
2021-09-22T15:13:01.823Z f88bbf5a-72e9-4d5e-ae10-8a80044d5525 ERROR Invoke Error
{
"errorType": "AccessDeniedException",
"errorMessage": "User: arn:aws:sts::703300139815:assumed-role/ImageCacheStack-addLambdaHandlerServiceRole37B65F5-1V0RGWG3AC93S/ImageCacheStack-addLambdaHandler9017B0E5-OfLEFbYohQEu is not authorized to perform: dynamodb:PutItem on resource: arn:aws:dynamodb:eu-west-2:703300139815:table/image-cache",
"code": "AccessDeniedException",
"message": "User: arn:aws:sts::703300139815:assumed-role/ImageCacheStack-addLambdaHandlerServiceRole37B65F5-1V0RGWG3AC93S/ImageCacheStack-addLambdaHandler9017B0E5-OfLEFbYohQEu is not authorized to perform: dynamodb:PutItem on resource: arn:aws:dynamodb:eu-west-2:703300139815:table/image-cache",
"time": "2021-09-22T15:13:01.822Z",
"requestId": "N5LEURO9D7QE91JDEKCABHN5M3VV4KQNSO5AEMVJF66Q9ASUAAJG",
"statusCode": 400,
"retryable": false,
"retryDelay": 16.59556676200964,
"stack": [
"AccessDeniedException: User: arn:aws:sts::703300139815:assumed-role/ImageCacheStack-addLambdaHandlerServiceRole37B65F5-1V0RGWG3AC93S/ImageCacheStack-addLambdaHandler9017B0E5-OfLEFbYohQEu is not authorized to perform: dynamodb:PutItem on resource: arn:aws:dynamodb:eu-west-2:703300139815:table/image-cache",
" at Request.extractError (/var/runtime/node_modules/aws-sdk/lib/protocol/json.js:52:27)",
" at Request.callListeners (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:106:20)",
" at Request.emit (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:78:10)",
" at Request.emit (/var/runtime/node_modules/aws-sdk/lib/request.js:688:14)",
" at Request.transition (/var/runtime/node_modules/aws-sdk/lib/request.js:22:10)",
" at AcceptorStateMachine.runTo (/var/runtime/node_modules/aws-sdk/lib/state_machine.js:14:12)",
" at /var/runtime/node_modules/aws-sdk/lib/state_machine.js:26:10",
" at Request. (/var/runtime/node_modules/aws-sdk/lib/request.js:38:9)",
" at Request. (/var/runtime/node_modules/aws-sdk/lib/request.js:690:12)",
" at Request.callListeners (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:116:18)"
]
}
Use API Gateway to convert it to base64
It's getting a bit repetitive and params should be optional, and have defaults
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.