Comments (21)
from project_ai_mern_image_generation.
@vatsal1812 share the screen shot of the code
from project_ai_mern_image_generation.
@vatsal1812 share your
code screenshot
from project_ai_mern_image_generation.
@vatsal1812 share your code screenshot
please let me know what to do with the error. I've attached the screenshot of the error in another reply.
If you want the screenshot of the code, please let me know of which page or code file name you want the screenshot.
from project_ai_mern_image_generation.
Same problem with me also
from project_ai_mern_image_generation.
exactly same error, please let me know if you have found the error
from project_ai_mern_image_generation.
exactly same error, please let me know if you have found the error
i fixed this error by downgrading the openai to match adrian's version on package.json
from project_ai_mern_image_generation.
Can u tell me what u have change or can u give us screenshot
from project_ai_mern_image_generation.
exactly same error, please let me know if you have found the error
i fixed this error by downgrading the openai to match adrian's version on package.json
I changed "openai": "^3.1.0" to this from version 4, but still I am getting the same error, I am stuck in this from weeks ,It would be a great help if you guide me to solve this issue
my email : [email protected]
from project_ai_mern_image_generation.
Can u tell me what u have change or can u give us screenshot
yes please, share some code files or Screenshots
from project_ai_mern_image_generation.
@vatsal1812 share your code screenshot
please let me know what to do with the error. I've attached the screenshot of the error in another reply.
If you want the screenshot of the code, please let me know of which page or code file name you want the screenshot.
Have you solved this error ? if yes please share the solution, I am trying to debug it from weeks
from project_ai_mern_image_generation.
Can u tell me what u have change or can u give us screenshot
step 1: go to the package.json file
step 2: downgrade your open ai(make sure your package.json file matches adrian's file)`{
"name": "server",
"version": "1.0.0",
"type": "module",
"description": "",
"main": "index.js",
"scripts": {
"start": "nodemon index"
},
"author": "",
"license": "ISC",
"dependencies": {
"cloudinary": "^1.33.0",
"cors": "^2.8.5",
"dotenv": "^16.0.3",
"express": "^4.18.2",
"mongoose": "^6.8.2",
"nodemon": "^2.0.20",
"openai": "^3.1.0"
}
}`
step 3: stop your node server, by pressing ctrl c (windows)
step 4: type "npm install", it will update the package json
step 5: run the node server
step 6: make sure that you have inported configuration, openAi from 'openai'
from project_ai_mern_image_generation.
exactly same error, please let me know if you have found the error
i fixed this error by downgrading the openai to match adrian's version on package.jsonI changed "openai": "^3.1.0" to this from version 4, but still I am getting the same error, I am stuck in this from weeks ,It would be a great help if you guide me to solve this issue my email : [email protected]
can you send me a screen shot of what your inspection page is saying
from project_ai_mern_image_generation.
exactly same error, please let me know if you have found the error
i fixed this error by downgrading the openai to match adrian's version on package.jsonI changed "openai": "^3.1.0" to this from version 4, but still I am getting the same error, I am stuck in this from weeks ,It would be a great help if you guide me to solve this issue my email : [email protected]
can you send me a screen shot of what your inspection page is saying
I have made all the changes you suggested, now instead of typerror : failed to fetch I am getting this error :
from project_ai_mern_image_generation.
pl
exactly same error, please let me know if you have found the error
i fixed this error by downgrading the openai to match adrian's version on package.jsonI changed "openai": "^3.1.0" to this from version 4, but still I am getting the same error, I am stuck in this from weeks ,It would be a great help if you guide me to solve this issue my email : [email protected]
can you send me a screen shot of what your inspection page is saying
I have made all the changes you suggested, now instead of typerror : failed to fetch I am getting this error :
please send your dalleRoutes code
from project_ai_mern_image_generation.
pl
exactly same error, please let me know if you have found the error
i fixed this error by downgrading the openai to match adrian's version on package.jsonI changed "openai": "^3.1.0" to this from version 4, but still I am getting the same error, I am stuck in this from weeks ,It would be a great help if you guide me to solve this issue my email : [email protected]
can you send me a screen shot of what your inspection page is saying
I have made all the changes you suggested, now instead of typerror : failed to fetch I am getting this error :
please send your dalleRoutes code
import express from 'express';
import * as dotenv from 'dotenv';
import {Configuration, OpenAIApi} from 'openai';
dotenv.config();
const router = express.Router();
const configuration = new Configuration({
apiKey: process.env.OPENAI_API_KEY,
});
const openai = new OpenAIApi(configuration);
router.route('/').get( (req, res) => {
res.status(200).json({ message : 'Hello its DALL-E here'});
});
router.route('/').post(async (req, res) => {
try {
const { prompt } = req.body;
const aiResponse = await openai.createImage({
prompt,
n: 1,
size: '1024x1024',
response_format: 'b64_json'
});
const image = aiResponse.data.data[0].b64_json;
res.status(200).json( { photo : image });
} catch (error) {
console.error(error);
res.status(500).send(error?.response.data.error.message );
}
} );
export default router;
from project_ai_mern_image_generation.
any update on this?
from project_ai_mern_image_generation.
Same problem with me also,This solution can't work.
from project_ai_mern_image_generation.
and also this error i can't solve plz some help me
from project_ai_mern_image_generation.
can you share what errors are there in the inspect tab ?
from project_ai_mern_image_generation.
from project_ai_mern_image_generation.
Related Issues (20)
- server responded with 500 error when i generate post and try to add to home page but photo is not showing on home page HOT 5
- CORS Error HOT 2
- help me to find a solution of the given erro... SyntaxError: Unexpected token 'B', "Billing ha"... is not valid JSON. HOT 11
- Whenever I try to share API generated image to the home page, it gives me "POST http://localhost:8080/api/v1/post 500 (Internal Server Error) handleSubmit @ CreatePost.jsx:23" error even after giving "Success" alert. HOT 3
- Failed to load resource: the server responded with a status of 500 (Internal Server Error) HOT 4
- invalid image URL ,trouble in rendering image
- err in createpost page when i click generate than err occurs tht invalid api HOT 2
- Openai HOT 1
- Error HOT 4
- Error HOT 1
- unexpected end of json
- Error occured HOT 7
- Anyone can solve this.. HOT 3
- Running Project with Working API HOT 8
- POST http://localhost:8080/api/v1/post 500 (Internal Server Error) HOT 2
- Image error HOT 1
- [nodemon] app crashed - waiting for file changes before starting... HOT 4
- The solutions for major 4 Issues (#57, #56, #54 and # 59) HOT 2
- Solution Provided for : issue #2 File Saver npm Package not working after hosting
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 project_ai_mern_image_generation.